Whatever message this page gives is out now! Go check it out!

ColdFusion.Window.hide

Last update:
May 18, 2026

Description

Hides a window that is currently displayed.

Function syntax

ColdFusion.Window.hide(name)

See also

Using pop-up windows in Using Ajax form controls and features in the Developing ColdFusion Applications

History

ColdFusion 8: Added this function

Parameters

Parameter
Description
name
The name attribute of the window to hide.

Returns

This function does not return a value.

Usage

This tag has no effect if the window is already hidden.

Example

The following code lets you show and hide a window by clicking buttons:
<html xmlns="http://www.w3.org/1999/xhtml"> 
 <head> 
 </head> 
 <body> 
 
 <cfwindow name="testWindow" initshow=true title="test window" closable=true> 
 Window contents 
 </cfwindow> 
 
 <cfform> 
 <cfinput name="hidebutton" type="button" value="Hide Window" 
 onclick="javascript:ColdFusion.Window.hide('testWindow');"/> 
 <cfinput name="showbutton" type="button" value="Show Window" 
 onclick="javascript:ColdFusion.Window.show('testWindow');"/> 
 </cfform> 
 </body> 
 </html>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page