Solved

iframe problem,

Posted on 2009-05-11
2
231 Views
Last Modified: 2012-05-06
i have taken 2 iframes .in 1st iframe, i have given the src 2.php in which i have written india , and now on the click of india , new window opwns but i want to open in the second iframe

google chrome is responding fine but in mozilla, new window is opening?
what can be the reason?

please see the code.
1.php
 

<iframe id="datamain" src="2.php" width=130 height=250 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>
 

<iframe id="display" src="4.php" width=330 height=400 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0scrolling=no></iframe>
 

2.php
 

<a target="display" href="3.php">India</a>
 

3.php
 

3
 

4.php
 

4

Open in new window

0
Comment
Question by:designersx
2 Comments
 
LVL 12

Accepted Solution

by:
alien109 earned 100 total points
ID: 24361609
give your iframes a name attribute and target that

<iframe name="display" id="display" src="4.php" width=330 height=400 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0scrolling=no></iframe>
 
0
 

Author Comment

by:designersx
ID: 24361759
thanks buddy
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

743 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

11 Experts available now in Live!

Get 1:1 Help Now