darn window.open problem..shucks....

darn window.open problem..shucks....

Post by toedippe » Thu, 31 Jul 2003 07:53:01


Hello,

Can someone kindly tell me what is wrong with this code?

A simple page with a link that when clicked uses window.open but when I open
it in IE6 and click on the link I get 'Line 12 Invalid Argument. Line 12 is
the last line.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
<a href="testjava.htm" onClick="window.open('freemob.html', 'Free Mobile',
config='height=300,width=300')" target="_self">Click
Here</a>
</body>
</html>

Thanks in advance,

RG.
 
 
 

darn window.open problem..shucks....

Post by Lasse Reic » Thu, 31 Jul 2003 08:17:17

"toedipper" < XXXX@XXXXX.COM > writes:


I get the error on line 8, and the javascript de *** points to the
window.open call (unsurpricingly).

The error is that "Free Mobile" contains a space. The second argument
to the window.open function is the name of the window, not its title.
As a name, it must contain only letters, digits, and underscores, and
must start with a letter (starting with an underscore is reserved for
"_blank" etc.).

Apart from that, the "config=" is irrelevant and can be removed.
/L
--
Lasse Reichstein Nielsen - XXXX@XXXXX.COM
Art D'HTML: <URL: http://www.yqcomputer.com/ ;
'Faith without judgement merely degrades the spirit divine.'