Solved

How do i click link inside iframe

Posted on 2013-01-27
5
631 Views
Last Modified: 2013-01-27
Ok so i load a website using <iframe> how do i click a link inside of that iframe? I was reading around that i can use javascript but i dont fully understand what i need to do.

The id of link im trying to click is #sayhi
0
Comment
Question by:astonishin
5 Comments
 
LVL 30

Accepted Solution

by:
IanTh earned 500 total points
ID: 38823682
0
 

Author Comment

by:astonishin
ID: 38823686
You said use divs? divs can loads website like iframes?
0
 
LVL 30

Expert Comment

by:IanTh
ID: 38823704
did you read the depreciated url there are multiple issues with iframes these days you can use a div instead as all a did is is a place holder  

see
http://www.codingforums.com/archive/index.php/t-94273.html
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38823962
What do you call a link?
<a href="path/to/my/page.php" id="sayhi">THIS IS A LINK</a>
Or :
<img src="path/to/my/onepixel.php?param=1234" id="sayhi" />

I don't want to propose a NEW USELESS answer again
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28008937.html
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 38824443

How do i click link inside iframe

You move your mouse over the link and depress the top of the mouse.

If the subtext of this question is, "How do I cause an event to occur when the client did not initiate the event," then I think you need to explain why you would be doing something like that (something the client did not expect, maybe?) and exactly what event you're trying to trigger.

You can do a lot of interesting stuff along these lines with jQuery.  The jQuery library is very powerful if you use it wisely.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now