he*****@llnl.gov wrote:
I did find what I was looking for. Since I don't know JS very well I
was not sure how to put it. Anyways, I added
onfocus="window.scrollTo(0,0);" to my body tag and everything is now
working.
For suitable values of "to work".
- It will break with a runtime error (ReferenceError or TypeError) where
client-side scripting, but not this proprietary method, is supported.[1]
- It is not Valid markup, and will silently fail where this proprietary
attribute is not supported.[2]
- It will be an annoyance for the rest of the users.[3]
Why don't you go snowboarding instead?
PointedEars
___________
[1]
<URL:http://developer.mozilla.org/en/docs/DOM_Client_Object_Cross-Reference:window>
<URL:http://developer.mozilla.org/en/docs/DOM:window.scrollTo>
<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/scrollto.asp>
[2] <URL:http://validator.w3.org/>
<URL:http://www.w3.org/TR/html4/index/attributes.html>
[3] <URL:http://codestyle.org.uk/javascript/FAQ.shtml#suppressctrln>
--
This above all: To thine own self be true.
-- William Shakespeare (1564-1616)