Results 1 to 3 of 3
Thread: no address bar changes
Mar 25, 2002, 06:15 #1
- Join Date
- Mar 2002
- 0 Post(s)
- 0 Thread(s)
no address bar changes
between page passes i want to keep the address bar with my website name only. e.g. when you enter the site it is www.libresca.com and when you continue it becomes www......./libresca/indexm.htm as it is hosted under a university website. with what code i can keep the address bar with the same look. thank you to all who answer.
Mar 25, 2002, 07:15 #2
Create a html page with the correct title and place a single, named frame within it.
<frame src="frame1.html" name="mainframe" noresize>
Have the frame src pointing to the actual content pages of your site (which could be another frameset) and any links within it should only replace the content of the frame and not the entire window.
This would leave the 'top' window unchanged and therefore your title.
All links without specific target will by default target 'self'. Just be sure to avoid targetting any links to 'top' as this would replace the main window content with the frame in it and you'd lose your title/address.
This method is popular amongst domain registrars that offer url-forwarding with what is called (amongst other things) 'url masking'.
Mar 25, 2002, 07:41 #3
As a footnote it is worth mentioning that IE4+ and NN6+ handle the above method fine.
If you want to support Netscape 4 versions them simply use this instead:
<frameset rows="100%,0" border="0" framespacing="0" frameborder="no">
<frame src="yourmainpage.html" name="main" noresize>
<frame src="blank.html" name="nothinghere" noresize>
For some reason Netscape 4 doesn't like framesets with only 1 frame in it.
By using the above method you should be able to keep all browsers that support frames happy (including Netscape 6 and Internet Explorer 4+)and also keep your url in the address bar.