This example consists of four pages:
ShowResult.js,
Links.xml to store the results, and
LiveSearch.php.
showResult( ) is executed.
The function is triggered by the onKeyup event:
<html>
<head><script src="ShowResult.js"></script></head>
<body>
<form>
<input type="text" size="30" onKeyup="showResult(this.value)" />
<div id="livesearch"></div>
</form>
</body>
</html>
|