Solved

iframe problem,

Posted on 2009-05-11
2
232 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to create a tile layout 1 36
Bootstrap more than 12 columns in row 3 37
Enter key on html form page 11 47
Why is this panel heading creating extra space 2 34
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
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 the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

911 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

24 Experts available now in Live!

Get 1:1 Help Now