[Javascript] what's wrong with this code?

Andrew Dunn andrew at d2k.com.au
Mon Feb 25 00:50:20 CST 2002


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



More information about the Javascript mailing list