0
I’m willing to make sure after the visitor click anywhere on my page to open a pop-up window behind the main window the visitor is in. So he will not see the window that has been opened.
I’m using this function:
window.onload = function()
{
document.onclick = function( e )
{
window.open( 'http://www.google.com' );
}
}
The problem with this function above is that it only opens a new tab.
I would like it to open as this function below:
function myFunction() {
window.open("http://google.com", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=1, left=1, width=1, height=1");
}
But with this function above it only opens if there is a button to click. I wanted him to open up when you click anywhere on the page. But behind the main window.
do you want to do something without the user knowing? it doesn’t seem ethical.
– David Schrammel
Good evening Seth, do not use irrelevant tags, the tags should refer to the problem, ajaxe Node.js has nothing to do with the situation. I recommend you read: http://answall.com/help/tagging - I’m sure you’ll take this comment as a constructive criticism :)
– Guilherme Nascimento
I am willing to do this for a video portal of mine, as I will not have sponsors, I will be using ADS systems so that I can earn my money. then this was the only way I found for all visitors who enter generate a click for me in the ads without them knowing, I do not want to harm anyone and the window will only be opened once only then will not open more.
– Seth
Sorry friends but I do not know much the rules of the site. I am very focused on being able to solve this doubt that I am. can you help me?
– Seth
I hope that the developers of browser’s add-ons see this question/answer and find blocking for such
clique ... sem eles saberem
. Hideous piece. But, +1 for the well-asked question.– brasofilo