<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Click on the button to display the domain portion of the current document's origin.</p>
<button onclick="myFunction()">Click Me</button>
<p id="point"></p>
<script>
var x = document.getElementById("point");
function myFunction(){
x.innerHTML = document.domain;
}
</script> </body>
</html>