D
Desotuatail
Please can anyone tell me how I can tell which browser is used.
Netscape or IE (Versions might be helpfull)
TIA
Paul.
Netscape or IE (Versions might be helpfull)
TIA
Paul.
Please can anyone tell me how I can tell which browser is used.
Netscape or IE (Versions might be helpfull)
Desotuatail said:Please can anyone tell me how I can tell which browser is used.
Netscape or IE (Versions might be helpfull)
Desotuatail said:if (bName == "Netscape")
var browser = "NS"
else
var browser = "IE";
PeterMcC said:You can use js "browser-sniffing" - see:
http://www.webreference.com/tools/browser/javascript.html
Toby said:This script seems to assume that any non-Netscape browser is Internet
Explorer. That is simply not true.
I am not realy concerened about browsers other than Netscape or IE. What I am
concerened is how (while checking for these 2 browsers using Javascript I can
set a session variable so that it can be used as a flag for other pages in the
website.
Paul.
I am not realy concerened about browsers other than Netscape or IE. What I am
concerened is how (while checking for these 2 browsers...
Ok I get the message
nobody knows how to add a Session("Bowser") = "X"
within Javascrpt
<scipt>
</script>
Tags
Session variables are set by server side processes not by client side
scripts like JavaScript. The closest you can get in JavaScript is to
set a cookie and then read that back on every page.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.