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