Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
Search: <input type="search" id="mySearch" value="Food">
<p>Click the button to display the default value of the search field.</p>
<button type="button" onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
  var x = document.getElementById("mySearch").defaultValue;
  document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>