Whatever message this page gives is out now! Go check it out!
ColdFusion.Window.onHide(windowName, handler) |
Parameter | Description |
windowName | The name of the window. The handler function runs whenever this window hides. |
handler | The JavaScript function to run when the window hides. |
<head>
<script language="javascript">
function onhide(name) {
alert("window hidden = " + name);
}
function test() {
ColdFusion.Window.onHide("testWindow", onhide);
ColdFusion.Window.hide("testWindow");
}
</script>
</head>
<body>
<cfwindow name="testWindow" initshow=true title="test window"
closable=true>
Window contents
</cfwindow>
<cfform>
<cfinput name="button" value="Hide Window" onclick="javascript:test()" type="button"/>
</cfform>
</body>
</html>