mickeymouse 0 Posted July 12, 2019 Report Share Posted July 12, 2019 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;}}" Quote Link to post Share on other sites
justsomeguy 1,135 Posted July 12, 2019 Report Share Posted July 12, 2019 Check your browser console for error messages, you'll see that "Confirm" is not defined. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.