Browser JavaScript Information

When writing HTML/JavaScript code, one often has to deal with browser specific issues. This page displays information according to the JavaScript interpreter used by your browser.

If you are looking for a programmer's reference to the JavaScript language, try the following links:

Firefox will allow one to pull up a JavaScript console (Error Console) by pointing the browser at the special '' URL.

NST JavaScript Console

When coding HTML/JavaScript, it is often desirable to have a JavaScript Console embedded within the web page as an aid for code debug and development.

Embedded NST JavaScript Console
  • Having a console within the web page under development makes it easier to peak at and debug JavaScript code associated with the page.
  • Embedding the console within a web page allows one to use the same tool independently of the browser being used for testing (The "NST JavaScript Console" will work for both the IE and the Firefox Web browser).

The NST authors have developed the "NST JavaScript Console" for this purpose.

JavaScript Constants And Static Functions

JavaScript Results

document.alinkColor

document.anchors

document.applets

document.bgColor

document.cookie

document.domain

document.embeds

document.fgColor

document.forms

document.images

document.lastModified

document.linkColor

document.links

document.location

document.location.hash

document.location.host

document.location.hostname

document.location.href

document.location.pathname

document.location.port

document.location.protocol

document.location.search

document.plugins

document.referer

document.title

document.URL

document.vlinkColor

Math.PI

navigator.mimeTypes.length

navigator.appCodeName

navigator.appName

navigator.appVersion

navigator.javaEnabled()

navigator.language

navigator.platform

navigator.plugins.length

navigator.systemLanguage

navigator.userAgent

navigator.userLanguage

Number.MAX_VALUE

Number.MIN_VALUE

Number.NaN

Number.NEGATIVE_INFINITY

Number.POSITIVE_INFINITY

RegExp.input

RegExp.lastMatch

RegExp.lastParen

RegExp.leftContext

RegExp.multiline

RegExp.rightContext

screen.availHeight

screen.availLeft

screen.availTop

screen.availWidth

screen.colorDepth

screen.height

screen.pixelDepth

screen.width

window.closed

window.defaultStatus

window.document

window.frames

window.history

window.length

window.location

window.Math

window.name

window.navigator

window.offscreenBuffering

window.opener

window.parent

window.screen

window.self

window.status

window.top

window.window

Note:
  • If you see undefined in the results above, it indicates that your browser does not include support for the JavaScript code.

JavaScript Date

The JavaScript Date class has MANY different methods which can be used. The following shows what results will be returned by these methods. The first line in the table assigns your current system time to the variable now which is then referenced by the remaining rows in the table:

JavaScript Results

now = new Date()

now.getDate()

now.getDay()

now.getFullYear()

now.getHours()

now.getMilliseconds()

now.getMinutes()

now.getMonth()

now.getSeconds()

now.getTime()

now.getTimezoneOffset()

now.getUTCDate()

now.getUTCDay()

now.getUTCFullYear()

now.getUTCHours()

now.getUTCMilliseconds()

now.getUTCMinutes()

now.getUTCMonth()

now.getUTCSeconds()

now.getYear()

now.toDateString()

now.toGMTString()

now.toLocaleDateString()

now.toLocaleString()

now.toLocaleTimeString()

now.toString()

now.toUTCString()

now.toTimeString()

now.valueOf()

JavaScript MIME Types

Some (like Firefox) browsers permit JavaScript to view what plugins are installed. If a browser supports the about: URL handler, it may also report information about the plugins when one specifies the about:plugins URL. Unfortunately, there are security issues which prevent us from giving you links to the "about:", "about:plugins" and "about:config" URLs, so you'll have to type them in by hand if you want to try them out.

AltStyle によって変換されたページ (->オリジナル) /