You can try catch in JavaScript function which iscalled by onUnload (<BODYonUnload="unloaded()"><br>)"full login field and empty passw field" event andforward to another page, if this is true.