Greetings,
I have a notepad .html file called Test.html When I click a button, it makes a popup window and automatically prints the text inside it.
My question is now: Instead of it saying “Example Text”, how can I make it load up “C:test.doc” into the popup window via Mircosoft Word’s IE plug-in?
I can already get “C:test.doc” to open into IE when I click on a hyperlink, but I just don’t know how to do it in a popup window.
<html>
<script language=”JavaScript”>
var msg;
function WinOpen() {
msg = open(“”,”PopupWindow”,”toolbar=no,directories=no,menubar=no”);
msg.document.open()
msg.document.write(“Example Text”);
msg.document.close()
msg.print()
}
</script>
<body>
<input type=”button” value=”Print” name=”B3″ style=”font-family: Arial Rounded MT Bold; color: #000044″ onClick=”WinOpen()”>
</body>
Any help would be greatly appreciated!!!
Thanks in advance,
Matthew.