Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
47
rated 0 times [  54] [ 7]  / answers: 1 / hits: 19384  / 12 Years ago, tue, november 27, 2012, 12:00:00

I have injected an iframe in a webpage. In the iframe I have added a window.open(), like this:



window.open(mypage.com, _self);


But this refreshes the iframe with mypage.com. The requirement is to load this page in the same main browser.



How do I do that?


More From » html

 Answers
4

Use window.open if you want to open a window.



If you want to load a document into the current frame, then use location = http://example.com;



If you want to load a document into the top level frame, then use top.location = http://example.com;


[#81773] Monday, November 26, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
devonw

Total Points: 311
Total Questions: 116
Total Answers: 111

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
;