I am trying to simulate multithreading using an iframe, but I came across a situation that I do not know if it really uses the iframe process (thread) on its own.
For example, if I call a method that lies inside the iframe, will it be executed using the thread created by the iframe, or will it be executed using the main thread of the parent window?
If this is the last, then you can change the scope so that the iframe calls the method (so that the program uses a different thread from the parent window's thread)
EDIT: Maybe I should understand this more clearly, but I don't want to use WebWorkers simply because I don't have access to DOM elements.
source
share