View Full Version : HTML/Java Opening links to other web pages in the same browser window.


melbournian
15-04-2005, 13:06
Can anyone please help me with designing a website. I have want to create links that open up web pages in the same browser window as the main, is this possible? Thanks in advance.

Rich
15-04-2005, 13:16
If I understand your query rightly, I don't think you can do that.. But you can set them to open in a new window by adding "target_blank" to your link HTML code... For example <a href="http://www.xyz.com/">Linky target="_blank"</a>

Something like that anyway.

adlinds
15-04-2005, 13:23
<a href="http://www.examplesite.co.uk" title="example site" target="_self">www.examplesite.co.uk</a>

I think thats what you may be after.

AaronD
15-04-2005, 13:25
melbournian : Not sure if this is what you want but you can have iframes in the same browser window. They are like frames but are more dynamic.

Also if you put an iframe in a div or span tag then you can display the content over the top of your main page, a bit like opening a new window but it's in the same browser window.

melbournian
15-04-2005, 13:34
Adlinds, Many Thanks that is exactly what I'm looking for.