Re-read the message from Bob. it's = for window.location, not a function call.
Dave S ----- Original Message ----- From: Krishna, Hari To: '[email protected]' Sent: Friday, April 08, 2005 11:41 PM Subject: RE: [ASP] redirect url?? Its opening only google.com (whichever is the first line in the java script) It is not caring the second line. Whats wrong?? <script language="javascript"> function openlinks(form) { alert("Google"); window.open("http://www.google.com/"); alert("This is: yahoo"); window.location("http://www.yahoo.com/"); } </script> <form name="test" method="get" action=""> <input type="hidden" name="testlink" value=<%=labsandradsurl%>> <a href="#" OnClick="openlinks(this.form)">Klik Here</a> </form> I get the alert messages..both of them..but yahoo doesnot open in the same window or rather yahoo is not opened in any window? Thanks, Hari -----Original Message----- From: BobFilipiak [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 8:06 AM To: [email protected] Subject: Re: [ASP] redirect url?? Doesn't meat the requirement of opening Google in the same window and Yahoo in a separate window. Modify it to: window.location="http://www.google.com/"; Bob Filipiak A question not asked is a lost opportunity to learn. ----- Original Message ----- From: "Osman Erdogan" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, April 08, 2005 4:05 AM Subject: Re: [ASP] redirect url?? > > >> >> <script language="javascript1.2"> >> > function openlinks() { >> > window.open("http://www.yahoo.com/"); >> > window.open("http://www.google.com/"); >> >> } >> >> </script> >> >> <a href="#" OnClick="openlinks()">Klik Here</a> > > It works??? > > -- >> Osman ERDOGAN >> Turuncu Media >> 0 535 606 06 91 >> [EMAIL PROTECTED] > > > [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 --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- ------------------------------------------------------------------------------ Yahoo! Groups Links a.. To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 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 <*> 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/
