Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
136
rated 0 times [  140] [ 4]  / answers: 1 / hits: 74705  / 13 Years ago, tue, august 30, 2011, 12:00:00

If I open a window using



window.open('myurl.html', 'windowname', 'width=100,height=100');


How do I refer to the new window (from the same page that opened it) using 'windowname'? This question is specifically about this. I'm aware that I could save a reference to the handle by using var mywin = window.open(...) but I don't care about that in this situation.



Thanks, - Dave


More From » javascript

 Answers
5

afaik there's no way like windows['windowname'].
The 'windowname' assigned in window.open() can be addressed as a target in <a target=windowname [...] >


[#90348] Monday, August 29, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cristopherh

Total Points: 402
Total Questions: 117
Total Answers: 84

Location: Monaco
Member since Fri, Sep 24, 2021
3 Years ago
;