- What is
Variables and Data types
- String and
- Conditions In Java Script
Java Script is Netscape's Cross - platform, Object - based Scripting language for Client and Server applications. It is a Case sensitive application.
- Functions in
- Classes and
with Link and Images
- Using onMouseOver and onMouseOut
- Using onClick to process clicks on hyperlinks
- Conditionally navigating the user to a page when
they click a link
In this lesson you will learn how to navigate to some other URL when use selects a link from the combo box.
- Popup windows
In this lesson you will learn form validation using regular expressions.
- Java Script Code of Calendar and Date Picker or Popup Calendar
This is detailed java script code that can use for Calendar or date picker or popup calendar. In the code given below there are three files...
In this example we create a combo box of different technologies where if user select any technology and press.
The add() method is used to add an option to a dropdown list. Here in this example we have added an option to the select tag by using the add() method.
The addImport() method adds style sheets to the document by importing the style sheets collection.
The user can apply some properties to the element of the HTML document by using the method applyElement(), which is called on some object of element.
One of the method defined in the string to show bold string value in the html page can be used to bold the text on the document.
We can clear string from a selected string or text by the use of selection object's clear() method.
We can access the specific element of any existing html page by using the method getElementById(). For accessing any element in order to refer to it must have its some unique identity.
In this section you will see that how we can insert new node or element before the referenced node as a child node of the current node and in it the current node will be act as the parent node.
If we have to compare some values then we can use the if-else statement but it will make our code more complex. Therefore instead of using the if-else statement we can use the max method of the Math object.
As we can use the Math.max() method to find the maximum of zero or more values in the same way we can use Math.min() method to find the minimum of zero or more values.
This method scrollIntoView() is supported by both Internet Explorer and Firefox and can be a very useful method while applying scrolling property to HTML page, div or frame.
We can resize window by using the method resizeBy(). It resizes the window into the specified pixels passed as parameters to this method.
Here is a case when this might be very useful. Suppose you are filling some information on the form and at that time you are required to perform some task on another page then either you have to click on browser to create new window or you may loose all information filled in that form.
This function may be helpful when user wants to show some elements on any event and then required to hide them when action has been performed.
setUTCFullYear() method sets the full year for the provided date according to the Universal Coordinated Time (UTC).
setFullYear() method is used to set the full year for the specified date according to local time. In the given example, we have created a date object and specify date and time to it.