Solved

How do i click link inside iframe

Posted on 2013-01-27
5
642 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

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

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to dynamically set the form action using jQuery.

752 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