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 cannot explain, window.confirm()
is broken, yet all other javascript seems to work.
I even added the following check before wiring up the confirm handler, but clicking the link simply does nothing.
if (window.confirm)
{
$(".logoff").click(function ()
{
return confirm("Are you sure you want to log off?");
});
}
If I remove the click handler, the link functions as normal. Is there a better way to test for confirm()
support?