If we want to highlight the html table alternate row using javascript.We need to get collection of all elements specified with TR tag by getElementByTagName and the method will return as object.
In this example I will show you how to add class and remove class using javascript. It can be achieved by using ClassName property. We can get all elements in the document with the specified tag name.
We can find out the screen resolution by using the property screen.width and screen.height. The following javascript code will alert the screen resolution.
In this article we will discuss how to get date duration between dates in javascript. Here we are passing new date object with parameter as date string from using datepicker. Using our own logic and date functions we find out exact date difference.
In this article we will discuss about how to pass JavaScript object to a function inside the script block. If we pass an object as a parameter and we will get the properties of function inside the called function. Below example I will show you about it.
In this article we will discuss to to demonstrate a prompt box in javascript. When the user click’s the button event will be raise it calls the javascript function there we have implement prompt box.
In this article we will discuss, how to create an object using object literal notation in JavaScript. When we change made to the objects, it affects entire object of the script.