i need to display word, .txt documents in new popup windows in IE5 but i want the virtual file path removing eg is currently displayed but I want eg LIBRARY ITEM to be displayed to replace the URL.
I thought it could simply be done using the code below but this errors in IE5 and doesn't work (although strangely the code did work when using the browse on Homesite). Any help would be greatly appreciated.
<script language="JavaScript">
<!--
function open_popup(page) {
var myWindow = window.open(page,"test","width=200,height=200"
;
myWindow.document.title = "testpage";
return false;
}
-->
</script>
<p>
<a href="#" onClick="return open_popup('index.html');">Open Popup</a>
</p>
I thought it could simply be done using the code below but this errors in IE5 and doesn't work (although strangely the code did work when using the browse on Homesite). Any help would be greatly appreciated.
<script language="JavaScript">
<!--
function open_popup(page) {
var myWindow = window.open(page,"test","width=200,height=200"
myWindow.document.title = "testpage";
return false;
}
-->
</script>
<p>
<a href="#" onClick="return open_popup('index.html');">Open Popup</a>
</p>