I need to have an alert() pop up and warm people when they are leaving the secure network and when they click "ok" it will continue with the transfer.
It is simple to do in html -
<A href="link" onClick=alert('warning')">Link description</a>
I've just not ben able to figure it out how to get this to work in the menu.
Thank,
John
USCG, MLCA
Javascript included in a menu link.
Well, I got a little industries and developed a simple function that can be called to do what I want.
function notice(url)
{
alert('Links from this page to non-Coast Guard sites are provided as a customer service and do not represent any implicit or explicit endorsement by the United States Coast Guard of any commercial or private issues or products presented there.');
outsideWindow = window.open(url);
outsideWindow.focus();
}
Then in the menu I set url=javascript:notice('the link');
It displays the required disclamier and then opens the link in a new window.
function notice(url)
{
alert('Links from this page to non-Coast Guard sites are provided as a customer service and do not represent any implicit or explicit endorsement by the United States Coast Guard of any commercial or private issues or products presented there.');
outsideWindow = window.open(url);
outsideWindow.focus();
}
Then in the menu I set url=javascript:notice('the link');
It displays the required disclamier and then opens the link in a new window.
Like to see it
Can you give your URL? Would like to see this in action. I could use something like that on my Web site. 

Rudy