Solved

How do i click link inside iframe

Posted on 2013-01-27
5
649 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 110

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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

635 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