This also could come in very handy while resizing the applet, displaying page in a certain layout, displaying an important image and likewise ...
If you don't like to manually write the date of updating of your web document, the script is for you. The script gets the modification date of the document from the web server and puts it in the document. Make sure your web server supports this, some web servers DO NOT.
This simple single line of script displays current date and time on your web-page, in its default format. However the display is static, so time won't be changing. Time and date are the local time and date of the machine on which the script executes. Code here gives a very basic display of time and date, it doesn't get any simpler!
This code gives the user computer details such as the operating system, CPU type (e.g.. Intel Pentium III is x86) and platform. The values of platform are Win32, Win16, Mac68k, MacPPC and various Unix. You can combine this script with screen resolution, browser and get the details you need.
This small script enables the user to bookmark your site by clicking a link. This function however works in Internet Explorer only, so you could put this link in a conditional block, so non IE users do not see this. You can display a polite "Please bookmark this site" message for them instead.
Query String is a way passing Name-Value pairs of parameters separated by an ampersand (&) along with the URL itself. The query string is separated from the URL by a question mark (?). Usually a server side script/program (Sevelet, ASP, PERL, JSP...) is used to get the values of these parameters. A typical URL with a query string looks like - http://email@example.com . Customized contents can be served depending upon the values of the passed parameters. I have written a small script here which executes on the client side to get the query string parameters. Depending upon the value of the parameter passed, necessary processing can be done and relevant information can be served. Though this is not an efficient way as compared to server side processing, this proves very useful when your server does not support the script/technology that you are comfortable with; or worse, when you do not have script execution rights on the web server. Among many applications, this can be very useful to display an error page serving a customized, detailed error message depending upon the error ID passed to it.
The function getParam(szParam) gets the URL, and searches for the required parameter in it, if found the parameter value is returned, otherwise a null string ("") is returned. For each parameter this function should be called with the parameter name passed to it.