Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] what's wrong with this code?


  • From: javascript@xxxxxxxxxx (Cutter Bl)
  • Subject: [Javascript] what's wrong with this code?
  • Date: Mon, 25 Feb 2002 08:40:04 -0500

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@xxxxxxxxxx>
Reply-To: javascript@xxxxxxxxxx
To: "'javascript@xxxxxxxxxx'" <javascript@xxxxxxxxxx>
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@xxxxxxxxxx
https://lists.LaTech.edu/mailman/listinfo/javascript


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