Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do i click link inside iframe

Posted on 2013-01-27
5
Medium Priority
?
658 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 1500 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 111

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
This article discusses how to implement server side field validation and display customized error messages to the client.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

704 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