If you want to close any browser window then you can use window.close() method. The method window.close() will attempt to close the window in which the script is executing.
See simple script to …
Serialization is a way of flattening, pickling, sizzling,
serializing, or freeze-drying Objects so that they can be stored on
disk, and later read back and reconstituted, with all the links between
Objects intact
Object serialization is the process of saving an object's state to a
sequence of bytes, as well as the process of rebuilding those bytes into a
live object at some future time
Both provide key-value access to data. The Hashtable is one of the original collection classes in Java. HashMap is part of the new Collections Framework, added with Java 2, v1.2.
The key difference between the two is that access to the Hashtable is
synchronized on the table while access to the HashMap isn't. You can add it,
but it isn't there by default.
Another difference is that iterator in the HashMap is fail-safe while
the enumerator for the Hashtable isn't. If you change the map while
iterating, you'll know.
And, a third difference is that HashMap permits null values in it, while
Hashtable doesn't
The "JDK" is the Java Development Kit. i.e., the JDK is bundle of software that you can use to develop Java based software. The "JRE" is the Java Runtime Environment. i.e., the JRE is an implementation of the Java Virtual Machine which actually executes Java programs.
Typically, each JDK contains one (or more) JRE's along with the various development tools like the Java source compilers, bundling and deployment tools, debuggers, development libraries, etc.
First of all we have define variable var currentDate=new Date() and create a date object. Then define function NumToText() which take input as number which is output of method supported by date object.
In previous article JavaScript Status clock – Basic we see simple technique to add clock at browser status bar. Now we are going to manipulate data which we get from Date object constructor. Using the date object and some of its methods, you can create your own JavaScript clock customized to our needs.
Here we are going to use some method supported by Date object are as follows…