|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I know how to do this with VB Script, but this is something for my home page on Geocities.
What's the sytanx in JS to determine what the browser is? I want to load a different page based on that. I don't want to have to make people choose a page, I'd rather it be done automatically. Thanks for any and all help, Steve ------------------ Web Application Developer URL |
|
#2
|
|||
|
|||
|
Try:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> if (document.all | | document.getElementById) { document.write('This is the IE/NN6'); } else if (document.layers) { document.write('This is NN'); } else { document.write('Unrecognized Browser'); } [/code] |
|
#3
|
|||
|
|||
|
I want to load a different page based on that.
When sending people to a different page, depending on their browser, (using js) could give them a "hard time" when they are using the back-button in the browser, so try to have all the code in ONE page, instead of 3 pages. Using the script to define a stylesheet for different browsers do I think is a good idea. Steffen |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Help with determing browser type |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|