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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.