Created
February 10, 2015 08:49
-
-
Save xincici/69ce1200ecb41d1a92c2 to your computer and use it in GitHub Desktop.
open new window and fill new window with content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('eventName', function(){ | |
var win = window.open(); | |
win.document.write('<h1>test open window</h1>'); // write content in new opened window | |
win.document.close(); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment