工作,我有編碼它在IE而不是在火狐和Chrome的工作...Event.ClientX沒有在Firefox和Chrome
function handleWindowClose() {
if ((window.event.clientX < 0) || (window.event.clientY < 0))
{
event.returnValue = "Are You sure to leave this page";
}
}
window.onbeforeunload = handleWindowClose;
誰能幫我...
退房:http://stackoverflow.com/questions/2116177/windows-event-is- undefined-javascript-error-in-firefox – 2012-04-06 15:13:29