<a href="x.html" onmouseup="functiona()" onmousedown="function()" class="myclass">MY LINK!</a>
Printable View
<a href="x.html" onmouseup="functiona()" onmousedown="function()" class="myclass">MY LINK!</a>
Reconix, thanks but no thanks. That won't work, I don't have control of the link. Think of it like it's in an iframe.
Craig's working on it for me anyway now :P
Guy, i think the javascript behind the ad is preventing the onclick function from working sorry :S
I dont really know what to suggest :S
Hehe, your screwed :( boo..
Is there some way of "onEvent" or possibly putting it in a table or something?
its not that, its just when anywhere inside the ad is clicked, the ad javascript overtakes any previous onclick functions..
I could put it inside 20 tables and 30 divs each with an onclick but as long as its the inside of the ad thats being clicked, thats the JS that will run.
<a href="x.html" onmouseup="functiona() return false;" onmousedown="function() return false;" class="myclass">MY LINK!</a>
That will make it so it goes to x.html if you don't have javascript enabled.
Why have you put onmouseup/onmousedown there? And also Craig, onmouseout works.. even after they've clicked the ad. In internet explorer, you can click it then close the new window and voila it'd have run the javascript function by then because it's onmouseout, when you move the mouse away to close the new window.
i know onmouseout works. But onclick doesnt which is the whole point of people having to click it..