son Posted July 10, 2008 Share Posted July 10, 2008 Wanting to replace open webpage with another one from within a iframe on page would it be possible to do it via:<meta HTTP-EQUIV="REFRESH" CONTENT="1; URL=java script:window.replace('http://www.domain.co.uk/confirmation.php','_top');">? Or is this not a good idea?Son Link to comment Share on other sites More sharing options...
jeffman Posted July 10, 2008 Share Posted July 10, 2008 It'll work, but it won't let the user control when it happens. Try one of the methods or properties shown here: http://www.w3schools.com/htmldom/dom_obj_location.asp Link to comment Share on other sites More sharing options...
son Posted July 11, 2008 Author Share Posted July 11, 2008 It'll work, but it won't let the user control when it happens. Try one of the methods or properties shown here: http://www.w3schools.com/htmldom/dom_obj_location.asp Thanks a lot! Cannot believe how easy it actually was (window.parent.location.replace (url))...Son Link to comment Share on other sites More sharing options...
jeffman Posted July 11, 2008 Share Posted July 11, 2008 Thanks a lot! Cannot believe how easy it actually was (window.parent.location.replace (url))...That's how you know you're doing it right. Link to comment Share on other sites More sharing options...
son Posted July 14, 2008 Author Share Posted July 14, 2008 That's how you know you're doing it right. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.