Phiên bản đầy đủ: jsB@nk » Trình duyệt » Thông tin về trình duyệt
URL: https://www.javascriptbank.com/browser-information-script.html
Một đoạn mã JavaScript khác để hiển thị thông tin về trình duyệt của máy khách.
Phiên bản đầy đủ: jsB@nk » Trình duyệt » Thông tin về trình duyệt
URL: https://www.javascriptbank.com/browser-information-script.html
<script language="javascript"><!-- Beginvar navName = navigator.appName ;var brVer = navigator.userAgent; var brNum; var reg = new RegExp('/');function verNumIE() { var brVerId = brVer.indexOf('MSIE'); brNum = brVer.substr(brVerId,8);}//Copyright (c) 2002 Coyotee Labs Romania (www.coyoteelabs.go.ro)//This script can be used freely as long as all copyright messages are intact.//Visit WWW.COYOTEELABS.GO.RO for more scriptsfunction verNumOt() { var brVerId = brVer.search(reg); brNum = brVer.substring(brVerId+1);}// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<SCRIPT LANGUAGE="JavaScript"><!-- Beginif (navigator.appName == 'Microsoft Internet Explorer') { verNumIE() ;} else { verNumOt() ;}//Copyright (c) 2002 Coyotee Labs Romania (www.coyoteelabs.go.ro)document.write("<CENTER>");document.write("<TABLE BORDER=2>");document.write("<CAPTION Align=Top><b>Your Browser Informations</b></CAPTION>");document.write("<Tr>");document.write("<td><b>Browser Name : </b></td>");document.write("<td>",navName,"</td>");document.write("</Tr>");document.write("<Tr>");document.write("<td><b>Platform Name : </b></td>");document.write("<td>",navigator.platform,"</td>");document.write("</Tr>");document.write("<Tr>");document.write("<td><b>Browser Version : </b></td>");document.write("<td>",brNum,"</td>");document.write("</Tr>");document.write("<Tr>");document.write("<td><b>Is Java enabled ? : </b></td>");if ( !(navigator.javaEnabled()) ) { java="No" ;} else { java="Yes" ;}document.write("<td>",java,"</td>");document.write("</Tr>");document.write("</TABLE>");document.write("</CENTER>");// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->