I have code:
<a href="#" onclick="call(8969)" id="btn" class="zoombox"></a>
When I click button, this code will execute. Now, I want it is execute automatically when I visit website. How to do that ? Thank you very much !
I have code:
<a href="#" onclick="call(8969)" id="btn" class="zoombox"></a>
When I click button, this code will execute. Now, I want it is execute automatically when I visit website. How to do that ? Thank you very much !
Using jQuery trigger event, you can do this:
window.onload = function(){
$('#btn').trigger('click')
}
The onload event should suffice, otherwise, use JQuery.
<body onload="call(8986);" ...>