Fires before navigation occurs in the given object (on either a window element or a frameset element).