Replicate pressing ESC key in browser to stop page loading. Check if browser supports window.stop for IE.