My codes works perfectly on Firefox. It works on IE when the content of the div is less, it fail to scroll to bottom when the content of div is too high in IE. Button click to s
Wait until the document is loaded:
$(document).ready(function(){asd();});
Putting an instruction somewhere at the end of the document doesn't be the same like waiting for the ready-event.