I am having small of daily visitor 400 per-day. I planed to create the popup ads first I created the popup ads to open in new window . It was quit irritating the 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 i planed to get is first click on the web page to open the new tab .
Thank you