Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
02-19-2012, 11:48 AM #1
- Join Date
- Jul 2010
- Oregon City
- Thanked 50 Times in 49 Posts
change an elements properties in window.open
hey, is there any way i can change an elements properties in window open?
i click a link and it opens a window with window.open, and i want to take something from the current page and place it inside a textarea within the opened window.. is it possible?
02-19-2012, 04:12 PM #2
it depends greatly on whose page it is. If it's your page that you are opening then all you have to do is open the window with a query string, parse that out as it opens and add the string to the text box.
If it's somebody else's page you are opening it gets a little tricky - you have to know if the page accepts query strings and how it processes them. Here's how to open a window searching for "horse meat" in google, for example:
02-19-2012, 07:52 PM #3
- Join Date
- Sep 2005
- Sydney, Australia
- Thanked 681 Times in 670 Posts
If the page is on the same domain then you can just reference the other window by the name you assigned what the window.open returned to.