JohnChapman
Programmer
After a recent "automatic update" from MS a javascript method for closing a browser window with the click of a button has stopped working. Now I get the following message "This operation can only function within HTML Help." in a pop-up window.
The old code to close the window:
<!-- --------------HEADER--------------- -->
<HTML>
<HEAD>
<TITLE>Arrow Electronics, Inc.</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000080">
<center>
<!-- --------------TITLE--------------- -->
<FONT FACE="Arial, Times, serif" SIZE="8">
<B> ACME Widgets </B>
</FONT>
<!-- --------------AUTHOR--------------- -->
<FONT FACE="Arial, Times, serif" SIZE="4">
<P> This on-line course has been provided by: </P>
</FONT>
<FONT FACE="Arial, Times, serif" SIZE="6">
<P> ACME Training Department </P>
</FONT>
<object id=closeWin type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
<input type=button value="Click here to close this window." onClick="javascript: closeWin.Click();"></p>
</center>
<!-- --------------FOOTER--------------- -->
</FONT>
</BODY>
</HTML>
I need a replacement method. Any suggestions. Thanks!
John
jchapman@onlinecbt.com
The old code to close the window:
<!-- --------------HEADER--------------- -->
<HTML>
<HEAD>
<TITLE>Arrow Electronics, Inc.</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000080">
<center>
<!-- --------------TITLE--------------- -->
<FONT FACE="Arial, Times, serif" SIZE="8">
<B> ACME Widgets </B>
</FONT>
<!-- --------------AUTHOR--------------- -->
<FONT FACE="Arial, Times, serif" SIZE="4">
<P> This on-line course has been provided by: </P>
</FONT>
<FONT FACE="Arial, Times, serif" SIZE="6">
<P> ACME Training Department </P>
</FONT>
<object id=closeWin type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
<input type=button value="Click here to close this window." onClick="javascript: closeWin.Click();"></p>
</center>
<!-- --------------FOOTER--------------- -->
</FONT>
</BODY>
</HTML>
I need a replacement method. Any suggestions. Thanks!
John
jchapman@onlinecbt.com