Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-08-2002, 06:50 PM   PM User | #1
antipop
New to the CF scene

 
Join Date: Aug 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
antipop is an unknown quantity at this point
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
antipop is offline   Reply With Quote
Old 08-08-2002, 07:48 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
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';
Roy Sinclair is offline   Reply With Quote
Old 08-09-2002, 12:44 PM   PM User | #3
antipop
New to the CF scene

 
Join Date: Aug 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
antipop is an unknown quantity at this point
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
antipop is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:14 PM.


Advertisement
Log in to turn off these ads.