asp.net - when iam using the code window.location.href = "#" in .aspx page then scrolling in is not happening properly in internet explorer -


in asp.net website want disable button 1 content page. so, used below java script code in content page

 function changehashonload() {                    window.location.href += "#";      settimeout("changehashagain()", "50");          }   function changehashagain() {              window.location.href += "1";  }   var storedhash = window.location.hash;   window.setinterval(function () {      if (window.location.hash != storedhash) {          window.location.hash = storedhash;      }  }, 50);   changehashonload(); 

the above code working correctly in chrome , mozilla firefox, in internet explorer page doesnot scrolling properly. please give solution.

thank you.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -