P
philippe.laplanche
Hi
In the following code I wish that the myunload function is called when
I click on the "close" link or when I close the window using the
standard way.
It works in IE 7 but not in hta environment. Is there another way to
catch this event in hta environment ?
thanks
Philippe
<html>
<head>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="TEST"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
CAPTION="yes"
BORDER="dialog"
BORDERSTYLE="normal"
INNERBORDER="no"
CONTEXTMENU="yes"
NAVIGABLE="yes"
SCROLL="no"
SCROLLFLAT="no"
SELECTION="yes"
WINDOWSTATE="normal"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"<script type="text/javascript">
function myunload() {
alert("closing");
}
window.onunload = myunload;
</script>
</head>
<body>
<a href="javascript:window.close()">close</a>
</body>
</html>
In the following code I wish that the myunload function is called when
I click on the "close" link or when I close the window using the
standard way.
It works in IE 7 but not in hta environment. Is there another way to
catch this event in hta environment ?
thanks
Philippe
<html>
<head>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="TEST"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
CAPTION="yes"
BORDER="dialog"
BORDERSTYLE="normal"
INNERBORDER="no"
CONTEXTMENU="yes"
NAVIGABLE="yes"
SCROLL="no"
SCROLLFLAT="no"
SELECTION="yes"
WINDOWSTATE="normal"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"<script type="text/javascript">
function myunload() {
alert("closing");
}
window.onunload = myunload;
</script>
</head>
<body>
<a href="javascript:window.close()">close</a>
</body>
</html>