onsearch-enter.html   [plain text]


<html>
<body>
    <input type="search" value="test" onsearch="document.getElementById('result').innerHTML='SUCCESS'">
    <p>This tests that onsearch handlers for search fields are invoked correctly when pressing enter. To test this in Safari, focus the search field and press enter. The text below should change to SUCCESS.</p>    
    <div id="result">FAILURE</div>
</body>
</html>