Creating a simple "set to homepage" link.
The dhtml script that sets the homepage only works for IE. It calls the following function, "this.setHomePage('http://someurl.com')" see webpage for more details.
Creating a simple 'add to favorites' link.
This is a client side request, that asks the browser to put the link in the 'favorites' folder. Each browser may respond differently to this request, IE will pop open a window asking the user if they wish to add to their favorites.
Use the Dreamweaver behaviors panel to create jump menus, swap images, pop-up windows, play sound, validate forms and more. Add interactivity to your site with Dreamweaver behaviors.
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.
JavaScript may not be known for its object oriented properties, but it does support most of the features required to be considered an Object Oriented language. See how to write OOP code in JavaScript.
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.