Jonhoo
05-28-2006, 01:39 PM
Hello hello :)
I have made a small javascript for confirmation of deleting of a news article on my webpage.. It looks like this:
<script type="text/javascript">
var confirm = confirm("Are you sure you want to delete the article: 'Article name here' by Author name here?");
if (confirm == true)
{setTimeout("top.location.href = 'http://www.domain.com/ok.php'", 1);}
else
{setTimeout("top.location.href = 'http://www.domain.com/failed.php'", 1);}
</script>
The problem occurs when I try to actually click the link which produces the page with the code above.. In FF I get a confirmation popup, and then I get redirected to the appropriate page.. In IE however, all I get is the small annoying warning sign in the bottom left corner saying "Finished, but the page may contain errors"
Can any of you see the error with the above script..?
Appreciate any help :)
Jon
I have made a small javascript for confirmation of deleting of a news article on my webpage.. It looks like this:
<script type="text/javascript">
var confirm = confirm("Are you sure you want to delete the article: 'Article name here' by Author name here?");
if (confirm == true)
{setTimeout("top.location.href = 'http://www.domain.com/ok.php'", 1);}
else
{setTimeout("top.location.href = 'http://www.domain.com/failed.php'", 1);}
</script>
The problem occurs when I try to actually click the link which produces the page with the code above.. In FF I get a confirmation popup, and then I get redirected to the appropriate page.. In IE however, all I get is the small annoying warning sign in the bottom left corner saying "Finished, but the page may contain errors"
Can any of you see the error with the above script..?
Appreciate any help :)
Jon