I have a mobile website that is used by various devices including some onboard computers running a locked down version of Windows Embedded 7 with IE 7. For some reason that I ca
How about:
if ('confirm' in window) { $(".logoff").click(function () { return window.confirm("Are you sure you want to log off?"); }); }
Another options would be window.hasOwnProperty('confirm').
window.hasOwnProperty('confirm')