Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Open Link in New Tab

$
0
0

I've installed an banner rotator web part on my home page.  I've configured several images to open PDF when clicked.  I'd like them to open in a new tab instead of being prompted to save the file.  It works if I edit the original wiki home page with the following js code:

<script type="text/javascript">
function load_url(externallink) {window.open(externallink,target='_blank')}
</script>

But then I'm left with the message to revert the page to site definitions.  I've copied the code and pasted into new aspx page, set it as the new home page but for some reason the JS code doesn't work. 

Any ideas?

Joe


Viewing all articles
Browse latest Browse all 17574

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>