Hi,

Use this simple script:

<script type="text/javascript">
function gy() {
        window.open("http://www.yahoo.com/";);
        window.location = "http://www.google.com/";;
}
</script>

<a href="javascript:gy()">Click here</a>

Regards
Kamran
--


--- "Krishna, Hari" <[EMAIL PROTECTED]> wrote:
> Google in the same window and yahoo in a new window.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 07, 2005 2:57 PM
> To: [email protected]
> Subject: RE: [ASP] redirect url??
> 
> 
> 
> Google or Yahoo in the new window?
>  
>  
> -----Original Message-----
> From: Krishna, Hari [mailto:[EMAIL PROTECTED]
> Sent: April 7, 2005 3:50 PM
> To: '[email protected]'
> Subject: [ASP] redirect url??
>  
> Hi,
> 
> I have a question.
> 
> I have this code...
> 
> <a href="www.google.com">Click here for google</a>
> 
> Click on the link and it will open google.com in the same
> window.
> 
> My question is..
> 
> If I click on that link, it should open google in the same
> window and also
> open up yahoo.com in the new window.
> 
> Should be possible but I just don't know what I am missing.
> 
> Thanks,
> Hari
> 
> 
> CONFIDENTIALITY NOTICE:
> This e-mail message, including all attachments, is for the
> sole use of the
> intended recipient(s) and may contain confidential and
> privileged
> information. You may NOT use, disclose, copy or disseminate
> this
> information.  If you are not the intended recipient, please
> contact the
> sender by reply e-mail immediately.  Please destroy all
> copies of the
> original message and all attachments. Your cooperation is
> greatly
> appreciated.
> Columbus Regional Hospital
> 2400 East 17th Street
> Columbus, Indiana 47201
> 
> 
>
---------------------------------------------------------------------
>    
> Home       :
> http://groups.yahoo.com/group/active-server-pages
>
---------------------------------------------------------------------
> Post       : [email protected]
> Subscribe  : [EMAIL PROTECTED]
> Unsubscribe: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
> 
> 
> 
> 
>   _____  
> 
> Yahoo! Groups Links
> *         To visit your group on the web, go to:
> http://groups.yahoo.com/group/active-server-pages/
>   
> *         To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
> 
>   
> *         Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of
> <http://docs.yahoo.com/info/terms/>  Service. 
> 
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
>
---------------------------------------------------------------------
>    
>  Home       :
> http://groups.yahoo.com/group/active-server-pages
>
---------------------------------------------------------------------
>  Post       : [email protected]
>  Subscribe  : [EMAIL PROTECTED]
>  Unsubscribe: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> CONFIDENTIALITY NOTICE:
> This e-mail message, including all attachments, is for the
> sole use of the
> intended recipient(s) and may contain confidential and
> privileged
> information. You may NOT use, disclose, copy or disseminate
> this
> information.  If you are not the intended recipient, please
> contact the
> sender by reply e-mail immediately.  Please destroy all
> copies of the
> original message and all attachments. Your cooperation is
> greatly
> appreciated.
> Columbus Regional Hospital
> 2400 East 17th Street
> Columbus, Indiana 47201
> 


                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 





---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to