[Javascript] Window.scroll
Hassan Schroeder
hassan at webtuitive.com
Thu Jul 8 11:52:15 CDT 2004
dev at qroute.net wrote:
> When setting the focus to a form object, window automatically moves to that
> location. But, I would like the browser window to go about 75Px higher so
> The caption of that object can be visible too.
>
> How do I do that ?
Make the object's caption a named anchor, like
<a name="thisObject">this object caption</a>
<input id="thisInput"/>
then set
window.location = "#thisObject";
document.getElementById("thisInput").focus();
One possibility among many :-)
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
More information about the Javascript
mailing list