...

View Full Version : Help....



codingmasta
12-23-2006, 08:27 AM
Anything wrong?


<script type="text/javascript">
if(navigator.appname = Internet explorer)
document.write("Your currently used browser is Internet explorer!")
</script>

WA
12-23-2006, 10:20 AM
In the future, please use a more descriptive subject when posting a question. See posting guidelines. (http://www.codingforums.com/postguide.htm)

Since I'm lazy, I usually just test for document.all:



if (document.all && !window.opera)
document.write("Your currently used browser is Internet explorer!")



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum