Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h3>A demonstration of how to access an URL field</h3>
Homepage: <input type="url" id="myURL" value="http://www.google.com/">
<p>Click the button to get the URL of the URL field.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
  var x = document.getElementById("myURL").value;
  document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.mdssup.ma/jsref/tryit.asp?filename=tryjsref_url_get by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:33:51 GMT -->
</html>