How to create a Window programmatically with custom settings in ColdFusion

Ajax JavaScript Function - create window programmatically with custom settings

ColdFusionWindowcreateCustom.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ajax JavaScript Function: how to create window programmatically with custom settings</title>
</head>

<body>
<h2 style="color:Crimson; font-style:italic">Ajax JavaScript Function example: ColdFusion.Window.create</h2>
<hr width="600" align="left" color="CadetBlue" />
<br />

<cfajaximport tags="cfwindow">

<a href="JavaScript:ColdFusion.Window.create('ButterflyWindow','Butterfly Image','Butterfly.cfm',{height:375, width:450,x:25,y:150,draggable:false,closable:false})">
 <b>Show Butterfly Image Window</b>
</a>

</body>
</html>










More ColdFusion examples