> Take a look at the fantastic FAQ please.
Thanks! *flushing*
/Robert
-----Original Message-----
From: SEAK, Teng-Fong [mailto:tfseak@f...]
Sent: den 30 januari 2003 16:40
To: javascript
Subject: [javascript] RE: close a window and open another
You can do like this :
<a href=3D"payam.com" onClick=3D"openNewWinFunction(); window.close()">
and make your openNewWinFunction function with all parameters you need.
In case you'll see, there's a dialog asking the user wants to close the
current window. This is for security reason.
Take a look at the fantastic FAQ please.
http://p2p.wrox.com/javascript/faq.asp#no4
http://p2p.wrox.com/javascript/faq.asp#no7
> -----Message d'origine-----
> De : payam [mailto:torkian@c...]
> Envoy=E9 : jeudi 30 janvier 2003 16:17
> =C0 : javascript
> Objet : [javascript] close a window and open another
>
>
> I want my anchor to be able to:
> -open a new window with the address of: "payam.com"
> -and the close the window that it belongs to
> could you please help me
>
> <a href=3D"payam.com" onClick=3D" ??? ">
>
> thanks
> payam