Document Domain
<html> <body> <script language="JavaScript"> function function1() { var m = document.domain; if (m) { alert(m); } else { alert("No security domain"); } } </script> <input type="button" onClick="function1();" value="Domain Name"> </body> </html>