Message when leaving your site

  • Thread starter Thread starter JCO
  • Start date Start date
J

JCO

Hope this is not a silly question but is there a way to put up a message
when the viewer clicks on a link that takes them away from my website to
another website. I want to add a link to my menu structure that is another
website. I figure I would have it open a new Window (at the very least).

Thanks in Advance
 
is there a way to put up a message when the viewer clicks on a link that
takes them away from my ebsite

<ick>Yes, but WHY???</ick>

They're leaving because they want to. What do you wish to accomplish by
displaying a message?

Bob Lehmann
 
Hi JCO,

To prompt the visitor before leaving a page, you may consider working on the "onbeforeunload" event in your page code. This event fires
prior to a page being unloaded and you can write your own handler for this event. You may check the following page for the related
information and example.
http://msdn.microsoft.com/library/d...hor/dhtml/reference/events/onbeforeunload.asp

Regarding opening a new window, I am not sure how you design the menus. Normally, you can use the following method in FrontPage
with a simple hyperlink to open the target page in a new window.

1. Open the page in FrontPage.
2. Right click the hyperlink and then click Hyperlink Properties.
3. Click "Target Frame" and select "New Window"
4. Click OK.

I hope the information helps.

Regards,
Jason Lu
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thanks (both of you) for your reply.
The more I think about it, the more I don't see the use of doing this.


Jason Lu said:
Hi JCO,

To prompt the visitor before leaving a page, you may consider working on
the "onbeforeunload" event in your page code. This event fires
prior to a page being unloaded and you can write your own handler for this
event. You may check the following page for the related
information and example.
http://msdn.microsoft.com/library/d...hor/dhtml/reference/events/onbeforeunload.asp

Regarding opening a new window, I am not sure how you design the menus.
Normally, you can use the following method in FrontPage
with a simple hyperlink to open the target page in a new window.

1. Open the page in FrontPage.
2. Right click the hyperlink and then click Hyperlink Properties.
3. Click "Target Frame" and select "New Window"
4. Click OK.

I hope the information helps.

Regards,
Jason Lu
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
 
Back
Top