he*****@llnl.go v 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.mozil la.org/en/docs/DOM_Client_Obje ct_Cross-Reference:windo w>
<URL:http://developer.mozil la.org/en/docs/DOM:window.scro llTo>
<URL:http://msdn.microsoft. com/workshop/author/dhtml/reference/methods/scrollto.asp>
[2] <URL:http://validator.w3.or g/>
<URL:http://www.w3.org/TR/html4/index/attributes.html >
[3] <URL:http://codestyle.org.u k/javascript/FAQ.shtml#suppr essctrln>
--
This above all: To thine own self be true.
-- William Shakespeare (1564-1616)