Whatever message this page gives is out now! Go check it out!
ColdFusion.Window.onShow(windowName, handler) |
Parameter | Description |
windowName | The name of the window. The handler function runs whenever this window shows. |
handler | The JavaScript function to run when the window shows. |
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
function onshow(name) {
alert("window shown = " + name);
}
function test() {
ColdFusion.Window.onShow("testWindow", onshow);
ColdFusion.Window.show("testWindow");
}
</script>
</head>
<body>
<cfwindow name="testWindow" initshow=false title="test window"
closable=true>
Window contents
</cfwindow>
<cfform>
<cfinput name="button" value="show Window" onclick="javascript:test()" type="button"/>
</cfform>
</body>
</html>