SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any workaround to allow the javascript:OpenPopUpPage(SomeExternalSiteUrl) works for external links, when I tried it it gave me Webpage Can not be found

share|improve this question

I can confirm this issue. The reason is the XSS protection. jQuery fancybox is a probably the best solution. For completeness I can tell about a solution I've seen:

So when you open a page in a modal dialog, you open your application page:


As I said, jQuery fancybox is much simpler and "fancier"...

share|improve this answer

It should work with any URL. If you can open the URL in the browser, you should be able to open it with OpenPopUpPage too. What link are you passing in it?

share|improve this answer
normal url javascript:OpenPopUpPage('http://moew-ecstest/ecs/PUBLIC_DOC?P_DOCUMENTNUMBER=1‌​1C6C844D6D36139907FEDAC26B96896'); And yes, I can open it in the browser but once I use the OpenPopUpPage WebPage Can not be found appears! – Rami.Shareef Sep 24 '12 at 4:18
I ended up using fancyBox the jQuery plugin – Rami.Shareef Sep 24 '12 at 5:52

Your Answer


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.