javascript - How to ensure an element in view when a webpage is opened? -
what effective strategies ensure specific control in view when page opened?
more specifically, have validation message appears beneath fold, , want ensure seen when necessary.
i considered using bookmark (named anchor) there no clean way use it, since realize there error after i've processed page.
this won't matter expected solutions, i'm adding asp.net-mvc tag, in case there funky in framework might me.
and yes, jquery solutions ok.
answered on twitter david wolever
document.onload = function() { location.href = "#foo" }
Comments
Post a Comment