August 1999
Intermediate to advanced
1488 pages
72h 53m
English
link.search
The search property of the Link object represents the query portion of the URL (if available). This includes the leading question mark (?).
Listing 7.376 shows how the search property can be determined. When the button is clicked, the showsearch() function displays the search value of the link.
<html>
<head>
<title> Using the search property of the Link object</title>
</head>
<body>
<script language="JavaScript">
<!--Hide
// display the information being queried
function showsearch(){
document.form1.text1.value = document.links[0].search;
}
// End Hide --->
</script>
Click the button to ... |
Read now
Unlock full access