Reputation: 45454
If you run the following in Chrome console multiple times, it will update the same window over and over:
var win = window.open(`javascript:document.write(' <h1> Hello!!! </h1> ')`, 'test')
But how do we make it open a new window?
Upvotes: 0
Views: 38
Reputation: 79
Use _blank property
like this :
var win = window.open(`javascript:document.write(' <h1> Hello!!! </h1> ')`, '_blank')
Upvotes: 1