Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Changing a Bookmark URL

    Does anyone know of a way to change the URL when someone adds the page to their bookmarks/faves, to an alternative page?

    The reason is I have a site which launches in a pop up window and if people bookmark that popup instead of the page containing the link to the popup, when they return the site will launch with scrollbars/resize handle etc, which I don't want it to do.

    Therefore, I would like them to somehow be forced each time they visit the site to launch it from the page containing the link to the popup!

    Alternatively, if this can't be done is there a way of adding some code that will remove the scrollbars/resizebox/status panel etc. from the CURRENT window? I can make the current window a certain size and position, but cant control the on/off state of the window furniture.

    Any help greatly appreciated

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I haven't tried this but it should be possible to have the page which calls the pop up to set a name for the window:

    <body onload="self.name='caller';" onunload="self.name='';">

    Then the pop up could simply check:

    if (window.opener == null || window.opener.name != 'caller') document.location.href = 'insert calling page url';

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Roy, however I think I'm going to give up on this one as I'm not sure what I'm doing!

    I'm going to try an alternative design

    andrew


  •  

    Posting Permissions

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