4
There is way, when someone enters a website, a Javascript event "simulate" a click
? In other words, Javascript click
on the site automatically as soon as the person enters.
In case I have an advertising ad that only opens when someone clicks on the page. That is to click on the page to open a new advertising page.
<script data-cfasync="false" type="text/javascript" src="http://www.liveadexchanger.com/a/display.php?r=961387"></script>
In case there would be way, hardly any user enters, open this page simulating a "click". 'Cause I’ve tried every way I’ve been told.
document.getElementById("meuElemento").click()
– DontVoteMeDown
Instead of my element, I put what? A div for example?
– Gonçalo
I tried to apply, but I couldn’t.
– Gonçalo
I replied in more detail to you.
– DontVoteMeDown
It would be when clicking on any part of the page trigger another click event?
– Guilherme Nascimento
No, in case just seeing would open that javascript simulating an event.
– Gonçalo
@Gonçalo, by chance, what you want is not to get control of the user’s mouse cursor, which would go to a certain part of the page and click alone on an element (a div for example). 'Cause if it is, I don’t think it will, it would be a security breach...
– gustavox