Seems to work now.


Thx.


RO

-----Original Message-----
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 10:47 AM
To: CF-Talk
Subject: Re: OT: js pop-up

I could be wrong, but I don't think spaces are legal between a function
name and the parameters.
ie
window.open (bob)
is wrong
window.open(bob)
is right.

--Ben

Robert Orlini wrote:

> I get an error on a _javascript_ pop-up code. Something about "Expected )"
> Its either a ) or } I'm not sure.
> I'm not that good with _javascript_. Any ideas on the code below please?
>
> Thx.
>
> <script LANGUAGE="_javascript_">
> var newWindow;
> var firsttime=0;
>
> function PopWindow(url)
> {
> if (firsttime==0) {
> newWindow=window.open (url, "newWindow",
> "width=600,height=200,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no");
> firsttime++;
> }
> else{
> if (newWindow) {newWindow=window.open (url, "newWindow",
> "width=600,height=200,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no");
> newWindow.focus();
> } else {
> newWindow.location.href="" newWindow.focus();}
> }
> }
>
> </script>
>
> Robert O.
> HWW
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to