944,016 Members | Top Members by Rank

Ad:
Nov 5th, 2009
0

scrollTo(x.y)

Expand Post »
I am using scrollTo(x,y) function in my web application and function is not working in IE. But it is working with firefox. I'm using IE6. So can someone give me the reason and how to use scrollTo function with IE?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
isuruj is offline Offline
12 posts
since Oct 2009
Nov 5th, 2009
0
Re: scrollTo(x.y)
Click to Expand / Collapse  Quote originally posted by isuruj ...
I am using scrollTo(x,y) function in my web application and function is not working in IE. But it is working with firefox. I'm using IE6. So can someone give me the reason and how to use scrollTo function with IE?
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <body>
  3. <script language="JavaScript">
  4. function function1(){
  5. window.scrollTo(200,200);
  6. }
  7. function function2(){
  8. window.scroll(200,200);
  9. }
  10. </script>
  11. <input type="button" value="Scroll to (200,200)" onClick="function1();">
  12. <input type="button" value="Scroll(200,200)" onClick="function2();">
  13. <div style="height:1000;width:1500;background-color:blue;"></div>
  14. </body>
  15. </html>
this code is working in IE and FF, got it off the net
Reputation Points: 10
Solved Threads: 2
Newbie Poster
futingkiller is offline Offline
17 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: RSS reader needed
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Please help!!! JavaScript!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC