<script>
// Allow the user to be warned by default.
var allowPrompt = true;
window.onbeforeunload = WarnUser;
function WarnUser()
{
if(allowPrompt)
{
return "\n********************************************\nWAIT! WAIT! WAIT! WAIT! WAIT! WAIT!\n********************************************\n\nDon't leave just yet...\n\nDon't worry - We will never rent, sell or\nshare your contact information, with\nanyone else. We respect your privacy\nand hate spam too!\n\nIf you fill out your infomation below,\n\n";
}
else
{
// Reset the flag to its default value.
allowPrompt = true;
}
}
function NoPrompt()
{
allowPrompt = false;
}
</script>
// Allow the user to be warned by default.
var allowPrompt = true;
window.onbeforeunload = WarnUser;
function WarnUser()
{
if(allowPrompt)
{
return "\n********************************************\nWAIT! WAIT! WAIT! WAIT! WAIT! WAIT!\n********************************************\n\nDon't leave just yet...\n\nDon't worry - We will never rent, sell or\nshare your contact information, with\nanyone else. We respect your privacy\nand hate spam too!\n\nIf you fill out your infomation below,\n\n";
}
else
{
// Reset the flag to its default value.
allowPrompt = true;
}
}
function NoPrompt()
{
allowPrompt = false;
}
</script>
Developer and Project Manager: Ashik Mahmud
Odesk Hire Link:
No comments:
Post a Comment