JavaScript Navigator Object

js-thumbnail

The Navigator object specifies information about client’s browser window such as version, mime type and plug-ins. The window.navigator is read only property which gives reference to navigator object which provides information about application running the script. There is no public standard that applies to the navigator object, but all major browsers support it. JavaScript Navigator Object Syntax […]

JavaScript Location Object

js-thumbnail

This object is used to get information about current URL of the browser and automatically navigates the user to another page. This object is part of the window object and can be accessed using the window.location property. There is no public standard that applies to the location object, but all major browsers support it. JavaScript Location […]

JavaScript Screen Object

js-thumbnail

The screen object specifies information about dimensions of the user’s screen and display settings. It is special object for inspecting properties of the screen on which the current window is being rendered. There is no public standard that applies to the screen object, but all major browsers support it.  Javascript Screen Object Properties The following are the […]

How To Get Operating System using JavaScript

javascript-thumbnail

To determine operating system on the client machine, we can make use of navigator.appVersion or navigator.userAgent. Example To Get Operating System using JavaScript The following example demonstrates detection of operating system on the client machine.   <script type=”text/javascript”> tag is used to define client side script which uses attribute type for specifying MIME type. Navigator object […]

Javascript Math Object

javascript-thumbnail

The Math object provides a collection of properties of Number objects and methods. It is built in object which has properties and methods for mathematical constants and functions. It allows performing mathematical tasks. It has methods for trigonometric functions, such as sin( ), cos( ) and also used for mathematical operation. Math is not constructor. […]

JavaScript Date Object

javascript-thumbnail

JS Date Object is used to set the date, time, hour, minute and seconds. It is used to store the current date and time in the program. The date properties of date object are in two forms, local and Greenwich mean time(GMT). Syntax for Date Object Date Property Name Description constructor It is used to […]

JavaScript Document Object

javascript-thumbnail

A document object represents the HTML document that is displayed in the window. Document is parent object of objects such as images, forms etc. The client window size is associated with the webpage which we access using document object in the JavaScript. This object is same as getElementById() method which we use to access the […]

Enabling / Disabling Form Elements using JavaScript

javascript-thumbnail

The Enabling/Disabling element takes two values that is true or false, if we set to true then we can enable the element that means the user can edit the elements which user wants to do in the form or text box or else if it is set to be false then the element is disable […]

Javascript RegExp Object

javascript-thumbnail

The RegExp object is known as regular expression, it is used to specify the pattern of characters. Regular expressions are patterns used to match character combinations in strings. This is used for the pattern matching and also very useful for search and replace the text. In JavaScript, these are objects. This tutorial describes how to use […]

How To Format Numbers in JavaScript

javascript-thumbnail

JavaScript doesn’t have many built-in methods to format numbers. Most of the time customized code needs to be used. JavaScript Formatting numbers for decimals and significant digits is used to format the specific number of digits to be displayed. The significant digits are used to display the total number of digits that is present in decimal […]

Close
Please support the site
By clicking any of these buttons you help our site to get better