Thread: Autoclick
thedarkness

In case you want to save your users the effort of having to click a link  Applause


<html>
<head>
<title>Autoclick test</title>

</head>
<body bgcolor="#ffffff">

<div align='center'>

<a href="http://www.google.com" id="targetlink" name="targetlink" onClick="window.open(this.href,'_self')">
<font color="#ffffff">
_
</font>
</a>

</div>
<script type="text/

javascript

 ">


isIE = ( ( document.all ) && ( document.getElementById ) );
if( isIE )
  document.getElementById( "targetlink" ).click();
else
  document.getElementById( "targetlink" ).onclick();

</script>
</body>
</html>


And yes perk I shamelessly stole your IE detector, it's tight!  Applause

Cheers,
td

P.S. If this causes you to spend the next 40 years in prison it's not my fault, etc, etc, ad infinitum.

perkiset

@ IE Detector Horkage: You scofflaw!  Applause

@ Using Autoclick: Best be careful with that one mateys... TD's posted a cool technique that might land you a large male wife named bubba @ the boys club if you're unwise...

nutballs

there are plenty of more legitimate uses for this.

for example, could this be used to autoplay embedded youtube vids? they are flash. if you can click a coordinate space, that would be awesome. though i have no idea if you can.

perkiset

So did the lockpick kits I sold in junior high school. LOTS of legitimate uses ... as well...  Applause

just sayin'

/p

nutballs

legitimate is such a restrictive word...

thedarkness

quote author=nutballs link=topic=200.msg1267#msg1267 date=1178994796

legitimate is such a restrictive word...


Not as restricitve as "incarceration"  Applause

vsloathe

Let us remind ourselves that click fraud is not illegal, in case that is what we were talking about.

SEO

 idiot

I think it would be even more useful if it had a random element in it that only allowed a click to happen on exit of the page IF the person hadnt clicked whilst on the page.... ohhh and only actually clicked within a certain % of the time.... maybe some cloaking would also help make sure the erm page code loaded quickly (or something.... :Applause )


Perkiset's Place Home   Politics @ Perkiset's