There are many scripts out there that provide customized pop ups for your pages. Rather than trying to supply a one size fits all script this article demonstrates how you can easily write your own popups, giving you complete control over what you show your users.
As we have seen in earlier section String object is a widely used object in Java Script. Let us see in this section what the String Object is used for, how to use that in Java Script, some of the methods used in String Object in brief.
As a continuation of the earlier section where we have seen alert box, we will see in section briefly about confirm box and prompt box.The confirm box is one that pops up with two buttons namely OK and Cancel. This box namely Confirm box is used to verify from the user for acceptance. If the user accepts then the user presses the Ok button and there by the confirm box returns with a value true and if the user rejects then the user presses the cancel button and there by the confirm box returns false value.
Simple URL redirection made using JavaScript and the window.location() function. Also provided an example how to make URL redirection with time delay, using the setTimeout() function in Java Script.
This code snippet lets you hide the error message which appears when there occurs a Javascript error in your pages. The script will still not function but the visitor will not see the error message. Written in French.
Tutorial and sample codes to calculate the distance between two locations. Free sample source codes in PHP, ASP, ColdFusion, C/C++, C#, Java, Perl, Visual Basic and Javascript. Longitude and latitude for United States ZIP Code and Canadian Postal Code are available in database subscription.