I have 2 files. current.htm and new.htm.
I used window.open() in current.htm to open other file and specified a name to the new one.
Now, I need to put some text in a certain part of new.htm (for example a <div>).
How can I do it with jQuery?
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.
What you do is pull the changes across with
window.openeras shown here http://forum.jquery.com/topic/how-do-i-manipulate-a-dom-in-an-window-openEDIT for explanation:
in a script block in current.htm you could have:
and in new.htm:
Hope this helps.