Tuesday, June 03, 2014

Replace the current window with a new window:

Example

Replace the current window with a new window:

var myWindow = window.open("", "_self");
myWindow.document.write("<p>I replaced the current window.</p>");

No comments:

Post a Comment

Thanks for your comment