<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Type something in the search field and press "ENTER".</p>
<input type="search">
<p id="point"></p>
<script>
var x = document.getElementsByTagName("input")[0];
function myFunction(){
var txt = "You are searching for: " + x.value;
document.getElementById("point").innerHTML = txt;
}
x.onsearch = myFunction;
</script> </body>
</html>