Sniper
Regular Member
- Dec 30, 2008
- 472
- 218
I am looking to find a way to automatically click a link in an iframe when a page loads. I have tried a variety of these:
<frame src ="http://urlhere.com" width="100%" height="300" name="test">
<p>Your browser does not support iframes.</p>
</iframe>
<script type="javascript">
document.test.links[0].click(); //I have tried a variety of these
</script>
I can't seem to get it to work. there is only one link in the page.
Also, it doesn't have to be in an iframe. I just want the page with my link to load, then a click sent to that link. This is not for cheating adsense or anything else of that nature.
Can anyone help?
<frame src ="http://urlhere.com" width="100%" height="300" name="test">
<p>Your browser does not support iframes.</p>
</iframe>
<script type="javascript">
document.test.links[0].click(); //I have tried a variety of these
</script>
I can't seem to get it to work. there is only one link in the page.
Also, it doesn't have to be in an iframe. I just want the page with my link to load, then a click sent to that link. This is not for cheating adsense or anything else of that nature.
Can anyone help?