<!doctype html> <html> <head> <meta charset="utf-8"> <title>JavaScript Dictionary Prefix Match - Naive Solution</title> <!-- This example shows how to find prefix matched words in a set of words --> </head> <body onload="document.getElementById('Text1').focus();"> <div style="text-align: center"> <input id="Text1" type="text" style="font-family: arial;" onpropertychange="javascript:strMatch();" oninput="javascript:strMatch();"/> <input id="Button1" type="button" value="look up" /> </div> <br /><br /> <div id="userInput" style="text-align: center;"></div><br /> <div id="result" style="text-align: center;"></div> <script src="naive.js"></script> </body> </html>