Home | Advertising Info124 USERS CURRENTLY ONLINE   
   Site Search Contact Us Wednesday, June 28, 2017  
 
 







DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 
 

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Client Side Javascript
 PowerASP Code Help Area : Client Side Javascript
Subject Info: Javascript (window.open) A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
diu_cat8
Newbie
Newbie
Avatar

Joined: March/23/2006
Location: Hong Kong
Online Status: Offline
Info: 3
Added: March/25/2006 at 6:25am | IP Logged Quote diu_cat8

I want to detect the browser.....then write the following code...

------------------------------------------------------------ -----------------------------

<script type= "text/javascript">

function detectBrowser(){

var browser=navigator.platform

if (browser=="Win32")

{window.open("report.aspx")}

else

{window.open("test.aspx")}

}

</script>

</head>

<body onload= detectBrowser()">

------------------------------------------------------------ --------------------------

When I run the page, that can't open the report.aspx (my browser is Win32). That shows pop-up window blocked. What's wrong? Pls help me to solve this problem. < =text/> < =text/> function detectBrowser() { var browser=navigator.platform if (browser=="Win32") {window.open("report.aspx")} else {alert("It's time to upgrade your browser!")} } < =text/> function detectBrowser() { var browser=navigator.platform if (browser=="Win32") {window.open("report.aspx")} else {alert("It's time to upgrade your browser!")} } < =text/> function detectBrowser() { var browser=navigator.platform if (browser=="Win32") {window.open("report.aspx")} else {alert("It's time to upgrade your browser!")} } < =text/> function detectBrowser() { var browser=navigator.platform if (browser=="Win32") {window.open("report.aspx")} else {alert("It's time to upgrade your browser!")} } < =text/> function detectBrowser() { var browser=navigator.platform if (browser=="Win32") {window.open("report.aspx")} else {alert("It's time to upgrade your browser!")} }

Back to Top View diu_cat8's Profile Search for other info by diu_cat8
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2017 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com