This is a discussion on "Why do links in a frame open a new window?" within the Web Page Design section. This forum, and the thread "Why do links in a frame open a new window? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Why do links in a frame open a new window?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Why do links in a frame open a new window?
Hi Everyone.
I am having a problem trying to get a link in the top frame of a two-frame page, to open a page in the bottom frame. But the links keep opening a new page. An example of my problem is at: http://www.darrellburnett.com/Frame_Test/ And the relevant code from the top frame is below: <body> <div align="center"><strong><span class="style2">This is Top_Menu_Frame.html</span> <a href="Page_1.html" target="Bottom">LINK 1</a> <a href="Page_2.html" target="Bottom">LINK 2</a> <a href="Page_3.html" target="Bottom">LINK 3</a> <a href="Page_4.html" target="Bottom">LINK 4</a></strong></div> </body> </html> As you can see, the links are 'targeted' at the bottom frame (named 'Bottom') and all resources I have looked at say that it SHOULD work! I'm using Dreamweaver 8. I would be grateful for ANY help anyone can offer. Thank you! |
|
|
|
#2
|
|||
|
|||
|
Re: Why do links in a frame open a new window?
There is no need to use frames. There is never any need to use frames. But have you tried the attribute name="Bottom" as well as just the id? I don't know, I don't use frames but it might work.
You really should try to do this without frames though. Pete. |
|
#3
|
|||
|
|||
|
Re: Why do links in a frame open a new window?
Hi PA007
After reading quite extensively on the web about people's opinions on frames, I was beginning to come around to the same conclusion! Thank you again. |
|
#4
|
|||
|
|||
|
Re: Why do links in a frame open a new window?
yup.. Use css instead
|
|
#5
|
|||
|
|||
|
Re: Why do links in a frame open a new window?
Here are some great resources for you. They will show the why and how of css layout. Linky link.
Pete. |
|
#6
|
|||
|
|||
|
Re: Why do links in a frame open a new window?
I got to this thread by doing a search on "frame name target". I would really like to see the question answered - ie, why doesn't it work?
All the documentation that I can find, either in books or online, says that it should work. But it doesn't. Last edited by karinne; Dec 18th, 2007 at 15:45. Reason: Please use vBcode when inserting code in your posts. |
|
#7
|
|||
|
|||
|
Re: Why do links in a frame open a new window?
If you want a frame in a page, you should be using the IFRAME element...
Just replace
|
|
#8
|
|||
|
|||
|
Re: Why do links in a frame open a new window?
I don't think its really true that frames don't have a place in the world. Personally, I don't use frames but I have started implementing Iframes in a backend application. Sure, to the regular front end "get good SEO compatibility" designer frames may be a marketing nightmare... but to a backend platform creator where you are wanting the website to act more like an application I can't see how CSS can do quite the same trick on its own.
Pete, your suggestion to give iframe the 'name' attribute just fixed my firefox issue. In safari the 'id' was sufficient but with them both its across the board. Thanks! |
|
#9
|
|||
|
|||
|
Re: Why do links in a frame open a new window?
p.s. with all this being said, I would actually LOVE to know how to go beyond iFrames... e.g this ajax stuff with loading some fresh content into a DIV on the fly without a full page refresh seems pretty neat to me and probably better than the iframe solution I have going.
|
![]() |
| Tags |
| frame, link, target |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how can have iframe links to open in a new window? | onSPOT | Web Page Design | 1 | Mar 10th, 2008 07:43 |
| Change open in new window to open in same window | nsr500rossi | JavaScript Forum | 2 | Jan 18th, 2008 14:13 |
| [SOLVED] open new window from main window | AdRock | Other Programming Languages | 1 | Nov 1st, 2007 02:45 |
| Need JavaScript for html links should open in a new window in the first time, after.. | jayaramgussy | JavaScript Forum | 0 | Jun 19th, 2007 09:00 |
| Need to open ALL links in new window | javascript | JavaScript Forum | 4 | Aug 4th, 2006 18:46 |