Document Domain : document « Javascript Objects « JavaScript DHTML
- JavaScript DHTML
- Javascript Objects
- document
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>
Related examples in the same category