[Javascript] what's wrong with this code?

Cutter Bl cutterbl at hotmail.com
Mon Feb 25 07:40:04 CST 2002


What's the var for? Is this supposed to be the window name? Try it like 
this:

<a href="javascript:void(0)" onClick="opennew();">

Function:

function opennew() {
   
window.open("contact.htm","new_window","menubar=no,toolbar=yes,width=200,height=
505,top=100,left=250,alwaysRaised");
}

Cutter
http://www.falcon-knives.com

----Original Message Follows----
From: Andrew Dunn <andrew at d2k.com.au>
Reply-To: javascript at LaTech.edu
To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
Subject: [Javascript] what's wrong with this code?
Date: Mon, 25 Feb 2002 16:50:20 +1000

Hi,
    Can anyone please tell me what's wrong with this code? It comes up with
an error of "object expected".

Function called from hyperlink:

<a href="javascript:opennew();">

Function:

function opennew() {
   var new_window;
   new_window =
window.open("contact.htm","_blank","menubar=no,toolbar=yes,width=200,height=
505,top=100,left=250,alwaysRaised");
}

Regards,
Andrew
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com




More information about the Javascript mailing list