string (JavaScript 1.0)

Represents the characters of a string.

Properties & Events

KeyDescriptionAvailability
constructorSpecifies the function that creates the String prototype.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
lengthNumber of characters in the string.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 7.0
prototypeReference to the String prototype object.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0

Examples having uses of: 'string'

0 votes
1k views

JavaScript Keyboard Events

This event are fired when a key is pressed. IE 8 and earlier use event.keyCode to retrieve the key that was pressed down, while Firefox/Chrome/Safari/Opera use event.which.