[Javascript] window.open in links

Muchacho, Laurent (TWIi London) LMuchacho at twii.net
Wed Apr 10 08:46:00 CDT 2002


Hi Manuel 

just write void in front and it will be ok 

<A 
href="JavaScript:void
window.open('basket.htm','myWindow','width=400,height=300');">open 
window</A>

Laurent 


-----Original Message-----
From: Manuel Socarras Reyes [mailto:msocarras at terra.es]
Sent: 10 April 2002 14:33
To: javascript at LaTech.edu
Subject: [Javascript] window.open in links


hi:

i have a problem opening a window from a link:

<A 
href="JavaScript:window.open('basket.htm','myWindow','width=400,height=300')
;">open 
window</A>

after clicking in the link, the new window opens & the one with the link 
shows a new page with [object Window] in it.

Mac
------
NN 6.2

PC
----
NN 4.77
NN 6.1
IE 6.0

where only works fine is in Mac, IE 5.0.

 i know that a solution is calling a function but i'd like to know the 
origin of the problem

<SCRIPT>
    function openWindow() {
        window.open("basket.htm","","width=400,height=300");
    }
</SCRIPT>
</HEAD>

<BODY bgcolor="#FFFFFF">
<A href="JavaScript:openWindow()">open window</A>

-- 
Saludos,

Manuel Socarrás Reyes <msocarras at terra.es>
Barcelona. Spain




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


DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information.  It is intended to be conveyed only to the designated
recipient(s) named above.  If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system.  Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.



More information about the Javascript mailing list