[Javascript] window.open in links

Cutter Bl cutterbl at hotmail.com
Thu Apr 11 07:36:04 CDT 2002


Laurent,

You might also try something along the lines of:

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

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

----Original Message Follows----
From: Manuel Socarras Reyes <msocarras at terra.es>
Reply-To: javascript at LaTech.edu
To: javascript at LaTech.edu
Subject: Re: [Javascript] window.open in links
Date: Thu, 11 Apr 2002 02:50:57 +0200

thanks a lot Laurent, my problem is solved! now i realized the open
method is returning a pointer to the window that is interpreted by the
browser as a URL

--
Saludos,

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



Muchacho, Laurent (TWIi London) wrote:

>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>
>




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


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




More information about the Javascript mailing list