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?
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?
Use _blank property
like this :
var win = window.open(`javascript:document.write(' <h1> Hello!!! </h1> ')`, '_blank')
Hello!!!
')", '_blank')` – Spencer Wieczorek Jun 05 '18 at 01:19