Jump to content

'Confirm Window' Code not working

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...