FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

HELP! iFrames opening in new window.

 


since83
I was wondering if anyone could help me figure out my problem. I have links in an iFrame which are suppose to target the htlm links onto the iFrame on the right of these hyperlinks, a three level navigation is what I am going for. All of this is done on the index page , but in Firefox and IE new windows are opening up rather than loading the iFrames on the target page. Here is the example : www.since83.net (works fine in Chrome and Safari) .
Thanks for the read!
Peterssidan
I don't know if you can use the target to refer to the id of the iframe. Add the attribute name="subNav" to the iframe and it will work.
Code:
<iframe id="subNav" name="subNav" frameborder="0" height="1000" scrolling="no" width="150">&lt;br /&gt;
    </iframe>
sonam
I am not sure 100% but how I know you can not use target="subNav" for opening page in some other iframe. Maybe this work with frameset but with iframe Rolling Eyes
I think for your needs JavaScript is better solution then iframe. Think about it.

Sonam
Peterssidan
target="subNav" should work fine. No need for javascript here.

And as you can see he seem to have solved it now Smile
Marcuzzo
yes,
I wanted to have a go on it but it seems to work now.
sonam
I am sugest JS instead of iframe because JS is better solution for SEO. Maybe I am wrong, but I am reading somewhere how is harder to include site and their content with frames in search engine then sites without it.

Sonam
since83
this worked perfectly! thank you very much!!
since83
Any suggestions on how to learn to some java for beginners?
Marcuzzo
since83 wrote:
Any suggestions on how to learn to some java for beginners?


java or JavaScript?
since83
javascript sorry about that.
Related topics

form button to open a custom sized new window
Opening page in new window
How to make desktop link for firefox open in new window?
Javascript to launch new window with attributes
How to click an image/new window problem

New Window- seen as pop-up?
javascript help. creating new element only when clicked
HELP! Iframe opens in new window - SOLVED
IE 7 Help - new Tabs Bug
Help with neat Image Display Code

751 Useful Windows XP Files
I need help with CSS
php-nuke - Forum Help (phpbb)
How do you do this?
Windows XP vs Mac OS X
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.