Jump to content

'Confirm Window' Code not working


mickeymouse
 Share

Recommended Posts

I'm Baffled.  My code (as far as I can see) matches W3 School tutorial example but it doesn't work.

My button to go to the function doesn't react (it does if I remove my red text code.

"function myDelDB()
{var r = Confirm('Delete');
if (r==true)

    {location.href='CAS_RoulDeleteDB.php'; return false;
    window.open(location.href); return false;}
else{return false;}
}"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...