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.
AJAX (Asynchronous JavaScript and XML) is a JavaScript technique which involves special object XMLHttpRequest and sending/receive asynchronous (without full page reload) requests to server. This is an example of simple AJAX application which allows user to enter web-page url and display title of that page right after user stops typing.
In this JavaScript – Part I Tutorial you will learn about Array Definition, Defining an Array in JavaScript, Shorter form, Literal Array, Accessing the elements in an array, Editing the values or elements in an array, Single Dimensional Array in JavaScript
The array concept is used to store a set of values in a single variable name. So this is a very important concept in any programming language, Let us see how to define and handle arrays in JavaScript in this session.
Having got a brief idea about Single Dimensional Array in JavaScript let us see in this section how to define and access Two Dimensional Array in JavaScript.
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.
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.
Just like any other programming language the conditional statements in Java Script are used for decision making purpose.If a programmer wants to execute certain statements only , when a desired condition is satisfied or have the true value then this conditional statement namely if statement can be used.
In continuation of the previous section let use see the remaining conditional statements in Java Script in this section.If there are many branching r conditions to be decided based on which actions must be executed then the programmer can go for if...else if....else statement.
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.