is it possible to access a javascript object from all browser windows?
is there a global object to store data in?
for example: we want to put information in one window from multiple opened or later opened windows.
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can pass the information to the target window via window.open , „javascript:“ using target and even initialize it, if it do not exists.
For example:
You have a page “mypage.html” and there a javascript object myObject, and want to pass from any window in the browser the information foo = ‘hello’.
mypage.html :
the calling html’s:
the setTimeout is only needed for chrom, because he got the “window.location.href” property not at startup.