SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy no address bar changes

    hi,
    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.
    ultfor

  2. #2
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Create a html page with the correct title and place a single, named frame within it.


    <frameset>
    <frame src="frame1.html" name="mainframe" noresize>
    </frameset>


    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'.
    Last edited by Bill Posters; Mar 25, 2002 at 07:32.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  3. #3
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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>
    </frameset>


    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.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •