Jump to content

Auto Click A Link In An Iframe..?


cyfer65
 Share

Recommended Posts

Is it possible at all to auto click a link thats in an Iframe..??So say i make a page that iframes another page and on that page in the iframe is a link that i want to auto click with some JavaScript code..is there anyway to do such a thing..?? with onmouse over or just autoclick the link once the pages have finished loading..??

Link to comment
Share on other sites

Buttons have a click() method, but I do not think that links do.If the real goal is to load a new page into the iFrame, you can change the src property of the iFrame. If this procedure depends on user input, like hovering over a link, then you can handle the link's mouseover event and grab the href property of the link.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...