Hi,
I have made a script that should check if users on my site are registering to example a newsletter or a contest. But now when i want to check the location in the window, it says permission denied. Can any one help me?
Here's the code:
<script type="text/JavaScript" language="JavaScript">
a = null;
url = "http://www,mycash.dk/registred.php";
function vispopup(adresse)
{
a = window.open(adresse, "a", "");
window.setTimeout("check('" + adresse + "');", 5000);
}
function check(adresse)
{
if (a != null)
{
if (a.location.href != url)
{
alert("the");
}
}
setTimeout("check('" + adresse + "')", 1000);
}
</script>
<a href="#" onclick="vispopup('http://www.mycash.dk');return false">click here</a>
-------------------------------------------------------------------------------------------------------------------
Note that the file is on http://www.metra.dk