Начало
Пользовательские детали
Детали браузера
Детали браузера.Скрипт произведет стол, который показывает имя браузера, версию, кодовое название, и пользовательского агента.
Browser Name:
Browser Version:
Browser Code Name:
User-Agent:
JavaScript Детали браузера
<!-- THREE STEPS TO INSTALL BROWSER DETAILS: 1. Paste the final coding into the HEAD of your HTML document 2. Add the onLoad event handler to the BODY of your HTML document 3. Copy the last code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <HEAD> <SCRIPT> <! > <! > <!-- Begin function whatBrowser() { document.Browser.Name.value=navigator.appName; document.Browser.Version.value=navigator.appVersion; document.Browser.Code.value=navigator.appCodeName; document.Browser.Agent.value=navigator.userAgent; } // End --> </SCRIPT> <!-- STEP TWO: Add the onLoad event handler to the BODY of your HTML document --> <BODY onLoad="whatBrowser()"> <!-- STEP THREE: Add this last code into the BODY of your HTML document --> <CENTER> <TABLE BORDER> <FORM NAME="Browser"> <TR> <TD> Browser Name: </TD> <TD> <INPUT TYPE="txt" NAME="Name" Size="45"></TD> </TR> <TR> <TD> Browser Version: </TD> <TD> <INPUT TYPE="txt" NAME="Version" Size="45"></TD> </TR> <TR> <TD> Browser Code Name: </TD> <TD> <INPUT TYPE="txt" NAME="Code" Size="45"></TD> </TR> <TR> <TD> User-Agent: </TD> <TD> <INPUT TYPE="txt" NAME="Agent" Size="45"></TD> </TR> </FORM> </TABLE> </CENTER> <!-- Script Size: 1.40 KB -->