javascript - How to Open the popup ads in new tab insted of new window -


i having small of daily visitor 400 per-day. planed create popup ads first created popup ads open in new window . quit irritating visitors .

my new window popup code

var firstclick = true; document.body.onclick = function() {     if (firstclick) {         window.open('popup creating website', 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=950, height=650, left = 300, top = 50');         window.open('popup creating second website', 'poppage2', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=950, height=650, left = 200, top = 10');         firstclick = false;     } } 

what planed first click on web page open new tab .

thank you

you can use target attribute open in new tab

example

<a href="#" target="blank">click here</a>