How to check browser

Results 1 to 2 of 2

Thread: How to check browser

  1. #1
    Join Date
    Dec 1969

    Default How to check browser

    Hi,<BR><BR>How to chaeck the browser to know in which browser user is looking the site using javascript.<BR><BR>I want to modity javascript calender script based on browser<BR>I want to calculate year differently based on browser. Then calender script works fine otherwise it showing different year on<BR>IE/NETSCAPE<BR><BR>IF (browser=="NETSCAPE" ){<BR> if (year &#060; 100) {<BR> year += 2000;<BR> }<BR> else {<BR> year += 1900;<BR> }<BR>}<BR><BR>IF (browser=="IE" ){<BR> if (year &#060; 100) {<BR> year += 2000;<BR> }<BR> else {<BR> year += 0;<BR> }<BR>}<BR><BR>Thanks in Advance<BR>Michel

  2. #2
    Join Date
    Dec 1969

    Default What's your question?

    Do you need help with the calendar, or browser detection? If it&#039;s browser detection, go here:<BR><BR><BR><BR>If it&#039;s the calendar, let me know, as I don&#039;t really follow your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts