views:

136

answers:

0

Refer to previous: http://stackoverflow.com/questions/2365994/display-a-warning-when-leaving-the-site-not-just-the-page/3442524#3442524

I'm needing something very similar, however, instead of relying on any rel, id, or onClick designations in the html's anchor tag, I need a way for the javascript to popup a warning if it's determined that the link a user clicks on is outside of our domain or a https site. Content Managers are able to add their own links, and it's not an option to have them insert the designations with every outside anchor tag link.

I'm not very good with javascript, so your help is greatly appreciated. Thank you.