Just call that function in an onLoad event in your Body tag.

Ben

-----Original Message-----
From: Bushy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 12:53 PM
To: CF-Community
Subject: OT : JS within my CF

Hi,

I have the following code in my index.cfm file. Then the index.cfm gets
loaded I want it to automatically load the new window without having to
click the link on the page.

How?

--html--

<body>

<HEAD>
--SCRIPT LANGUAGE="_javascript_"--
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->
--/script--
</HEAD>

</body>

--/html--

<a href=""> > false;">Load</a>



  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to