scrollTo(x.y)

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Oct 2009
Posts: 8
Reputation: isuruj is an unknown quantity at this point 
Solved Threads: 0
isuruj isuruj is offline Offline
Newbie Poster

scrollTo(x.y)

 
0
  #1
Nov 5th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 17
Reputation: futingkiller is an unknown quantity at this point 
Solved Threads: 2
futingkiller futingkiller is offline Offline
Newbie Poster
 
0
  #2
Nov 5th, 2009
Originally Posted by isuruj View 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?
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
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 389 | Replies: 1
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC