troubleshooting Question

Alert when leaving the site.

Avatar of Benjamin_
Benjamin_ asked on
13 Comments1 Solution369 ViewsLast Modified:
I have a DNN website where I need to show an alert when users click on a link to an external site (other domain). I have Some java script running on each external link but I will not work for links set up with the link module or with links pointing to a different URL on the main navigation.

Is there a script that will detect if the link points to a different URL that is not the domain ( to trigger the alert. This way if the user adds a link to another site it will trigger the alert even if it is added with the links module or main navigation?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros