please dont rip this site

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

URL.search Property

Name

URL.search Property---the query portion of a URL

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

URL.search

Description

The search is a read/write string property of the URL object. It specifies the query portion of a URL, including the leading question mark. For example, the search of the following (fictitious) location is "?query=JavaScript&matches=666".

http://www.ora.com:1234/search.html?query=JavaScript&matches=666#result

Note that the search string (also known as a query string) is not parsed: it still contains the "?" prefix--which you can remove with String.substring(1)--and, more important, it is not split along the "&" delimiter into individual variables. See the split method of the String object for an easy way to break it up in Navigator 3.0.

See Also

"Area", "Document.links[]", "Link", "String.split()", "URL", "Window.location"


Previous Home Next
URL.protocol Book Index window

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell

file: /Techref/language/java/script/definitive/refp_426.htm, 4KB, , updated: 2019/10/14 15:00, local time: 2024/11/25 15:00,
TOP NEW HELP FIND: 
18.221.93.167:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/language/java/script/definitive/refp_426.htm"> [Chapter 21] Reference: URL.search</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .