Need Help Please !

kelvinator44

Newbie
Joined
Jun 11, 2009
Messages
28
Reaction score
2
Well I have created a script that creates an invisible div layer that follows the mouse cursor and when a user clicks on it he clicks an ad. Now the only problem I have is that I want the page to reload when the user clicks the div. Any ideas or suggestions are welcome.
 
You'd need to get to the click event from that div, so you'd know when to reload the page.. but the problem I see is that since you have an ad in there, which is in an iframe, I'm not sure you can catch the click event of an iframe... cause iframes have a pretty limited access
 
@vis3r Thanks for your quick reply.Yeah I thought the same but I was thinking isnt there anyway to traverse though the a href tags in the iframe and update their onclick event to a function that reloads the page
 
What abt getElementsByTagName('a') and then changing their onclick to reload the page ?
 
Nevermind guys figured it out. Quite simple solution when you think abt it :P
 
Back
Top