Articles in the javascript Category
javascript »
There are a few thoughts we have to take note about Javascript Associative Arrays:
Arrays (which act as hash tables) have nothing to do with the built-in Array object. They simply rely on the fact that object.property is the same as object["property"]. This means that the length property is not used, nor do any Array methods (such as join) do anything.
The way to iterate over the items in an associate array is to use the for (value in array) construct, allowing you to access each item’s value via array[value].
Initialize a Javascript …
javascript »
Redirection in Javascript is quite easy.
By setting window.location equal to a new URL, it will redirect you to the specified URL. Though, if you just want to use redirection that works similarly to a simple HTML hyperlink, I would advice using hyperlink instead.
Basic Example of writing this is:
window.location=’http://www.redirect_to_this_page.com’













