Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We're going to include links to non-SP web applications in our corporate intranet. For those resources, I'd like to pop up an interstitial dialog/alert to make it obvious to the user that site navigation/authentication is changing and that they will need to use the back button to return.

Two thoughts I had-

I could just add JS popups to those links by hand. That's probably more than I want to ask a typical SP user to do. An admin would have to do that for them.

I could wrap the outside site in a frame, but then I'd have to validate that all of the features of the app worked in that configuration.

Is there any sort of feature that could give me this functionality globally for all links on the SP site?

share|improve this question
    
Maybe this requirement comes from others, but this will be incredibly annoying for users. –  Ryan Feb 14 '12 at 12:27

1 Answer 1

up vote 1 down vote accepted

I would use jQuery to inject the dialog to every external link. Add jQuery and the following script to .master page, something like:

$("a:not([href^='http://current.sharepointsite.com'])").click(function(){
    alert("You're about to leave SharePoint");
});

Or use some ready made jQuery plugin here.

share|improve this answer
    
The code above will make any hyperlink that uses http throw an alert. That includes any OOTB quick launch or top nav links. –  iOnline247 Feb 14 '12 at 2:03
    
Yep, it was just a rough example, now modified to work better. –  Jussi Palo Feb 14 '12 at 5:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.