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

I'm just getting started with SharePoint 2010 so that may not even be the right way to phrase the question. What I have is a list with a hyperlink column containing a URL to an external web page. What I'd like to do is display that web page in a form when an item is opened.

My thought was that I could add some type of web part (page viewer?) to the dispform.aspx and somehow dynamically construct the URL from whatever item had been opened with the form.

Thanks in advance.

share|improve this question

You could add an iFrame to the disp.aspx page, then just set the src attribute of that iFrame using JavaScript.

This is probably easiest to add in an HTML Form WebPart in 2010. You could edit the source to something like this:

<iframe id="iframePreview" />

<script type="text/javascript">

var url = "";
var iframe = document.getElementById("iframePreview");
iframe.setAttribute("src", url);


You would just need to fetch the url from the field you want.

share|improve this answer
Thanks Omar. This will be helpful. – Max Apr 10 '14 at 12:19

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.