How to define DO NOTHING in JavaScript

Just have this instead:

onclick="if (confirm('Do you wan to close the application ?')) window.close();"

No point of using the x?y:z if you don’t intend to use it “fully”.

Leave a Comment