I have one page that contains one frame called "theframe".
Inside this frames is this code:
PHP Code:<a href="'.$generatedlink.'"><img src="'.$generatedpicture.'"></a>
And i want to force the browser to click on that generated link.
I cant give a name to the <a> tag, so JavaScript must look for <a> and click on them.
This code is for a game i'm doing, this is the part where the computer plays. I'm doing using this logic because its part of the game.
Resuming: I need a Javascript code that forces the browser to click on all <a> tags he finds (or the only <a> tag the page in that iframe has).
Dont forget that clicking on the tag is the same that redirecting the iframe (not the browser please) to the Href of that tag.
Thanks!






Bookmarks