Chapter 16URLs and JavaScript

A Crash Course in URLs

Web addresses, more technically known as URLs, are an important part of web development. Fortunately, JavaScript includes a number of properties and methods that can be used to manipulate these URLs. Before discussing JavaScript’s support, a general description of URLs is in order.

URL is an acronym that stands for Uniform Resource Locator, a standard way to specify the location of an electronic resource. In short, it is a web address, such as http://www.wordware.com. The definition of a URL is derived from concepts introduced by the World Wide Web Global Information Initiative that have been in use since 1990. URLs make Internet resources available to different Internet protocols. When surfing ...

Get Advanced Javascript, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.