How can you set position of the page (Top and Left) to 0 using Javascript in one line code?

 Posted by Virendradugar on 1/1/2010 | Category: JavaScript Interview questions | Views: 4494

Well, there is an inbuilt function in JavaScript named scroll() which takes 2 arguments x and y.

If you want to set top and left to 0 then call this.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response