If there is nothing to display on the page:
<script>
window.close();
</script>
Not that this is buggy in NN, so I would recommend:
..
Your CF Code goes here
..
<html>
<head>
<script type="JavaScript">
<!--
function closeMe()
{
window.close();
}
//-->
</script>
</head>
<body onload="closeMe();">
</body>
</html>
HTH.
--
SCOTT VAN VLIET
SENIOR ANALYST
SBC SERVICES, INC
Tel: 858.886.3878
Fax: 858.653.6763
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 10:17 AM
To: CF-Talk
Subject: Re: Closing window
How can I close a window using javascript without having to click on a link
or button?
After my CF code runs I want the window to close.
+---------------------------------------------------------------------------
--------+
Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+---------------------------------------------------------------------------
---------+
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists