Buy Questpond's video subscriptions on
huge discount
.
Online: 2308
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
JavaScript
>
Loading ...
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: 6825
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
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.
window.scroll(0,0);
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What is Windows Workflow Foundation
Next > :
MaintainScrollPositionOnPostback will work in Ajax ...
Comments or Responses
Login to post response
More Interview Questions by Virendradugar
MaintainScrollPositionOnPostback will work in Ajax Postback.
What is other equivalent option of document.getElementById() when you ...
You are going to deploy a website on live server. Which build option y ...
Your site is deployed on testing server and you make some change in we ...
I have a table with 10 columns. I need to display name column as textf ...
What is AjaxControl ToolKit?
Tell name of all the control of Ajax?
If there are multiple update panels on the page say Upd1 and Upd2. The ...
Latest Interview Questions
Can you please tell me about the typed dataset?
How do we store the same named assemblies in GAC? Whether its possible ...
I need to restrict a class by creating only one object throughout the ...
Can you add title to browser history point?
Can you hash state information of URL ?
What role “#&&” plays in a querysting?
Is there any property names “IsNavigating”?
With IE, enabling history point will render additional,
More ...