How to display ‘anything’ in Sharepoint 2010 pop up / modal window

Published on Author peter.stilgoe2 Comments

Display a website:

<a onclick="javascript:NewItem2(event, &quot;http://www.bing.com&quot;); 
javascript:return false;" href="http://www.bing.com/" target="_self">Show Bing In Modal Window</a>

Display a image:

<a onclick="javascript:NewItem2(event, &quot;http://sitename/Images/image.png&quot;); 
javascript:return false;" href="/images/image.png/" target="_self">Show Image</a> 

Display flash:

<a onclick="javascript:NewItem2(event, &quot;http://www.microsoft.com/games/gamesforwindows/games/madagascar2/Mad2_Final_ENU.swf&quot;); 
javascript:return false;" href="http://www.microsoft.com/games/gamesforwindows/games/madagascar2/Mad2_Final_ENU.swf" target="_self">Flash Game</a>

Thanks to Erik @ http://erikswenson.blogspot.com/2010/09/ways-to-extend-sharepoint-modal-window.html

2 Responses to How to display ‘anything’ in Sharepoint 2010 pop up / modal window

Leave a Reply