Starting from two pages in the same domain open in different tabs or browser windows.
Starting from two pages in the same domain open in different tabs or browser windows.
Can I access functions on one page from the other.
That is, pass parameters to the functions of a page from the other and execute them? How could this be done ?.
I do not need the execution of those functions to return results to the other page, just execution.
My first idea to do this is to use the localstorage object of HTML5 knowing that events can be executed in an open page when changing the value of any variable of the localstorage by other page under the same domain.
The page that hears these changes in localstorage can execute events and use the new values assigned to the variable which would be equivalent to executing functions with params.
Is there any other way to do this?
Have functions within a page that can be executed from another page?