ajmalhuuss
05-28-2010, 12:16 AM
Hey guys just need a little help.
I need to create a little script that clicks a link automatically and opens it up in a new page.
So far I have this:
<head>
<script>
function autoClick(){
document.getElementById('linkToClick').click();
}
</head>
<body onload="setTimeout('autoClick();',3000);">
<a id="linkToClick" href="http://www.google.com" target="_blank">GOOGLE</a>
</body>
It works but the problem is that IE popup blocker keeps blocking the new window.
Is there a way to do the same thing with javascript without it having blocked by IE popup blocker?
[/CODE]
I need to create a little script that clicks a link automatically and opens it up in a new page.
So far I have this:
<head>
<script>
function autoClick(){
document.getElementById('linkToClick').click();
}
</head>
<body onload="setTimeout('autoClick();',3000);">
<a id="linkToClick" href="http://www.google.com" target="_blank">GOOGLE</a>
</body>
It works but the problem is that IE popup blocker keeps blocking the new window.
Is there a way to do the same thing with javascript without it having blocked by IE popup blocker?
[/CODE]