<script type="text/javascript"> window.onload = function () { var div = document.getElementById("divscroll"); var div_position = document.getElementById("div_position"); var position = parseInt('<%=Request.Form("div_position") %>'); if (isNaN(position)) { position = 0; } div.scrollTop = position; div.onscroll = function () { div_position.value = div.scrollTop; }; }; </script>
<div class="scroll" id="divscroll"> <input type="hidden" id="div_position" name="div_position" />
For IE try: window.onload = new function() { alert('hello');};
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)