Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto loading word file

Status
Not open for further replies.

vans

Programmer
Apr 23, 2001
12
Hi,

I have a web page and a word file in the same path,I want to open the word file automatically whenever the htm/html file opens,so how to open it ? Is there any chance to write some code in onload evet ? Please give the solution ?


Thanks in advance.

bye,
vans.
 
This will do it:

<html>
<head>
<script language=&quot;JavaScript&quot;>
function OpenWord() {
window.open('test.doc')
}
</script>
</head>
<body onload=&quot;OpenWord();&quot;>
Web page text
</body>
</html>


[when Word is installed on the machine]
. . .but i will really hate such an action.
normally you should present me a link...


br
Gerard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top