javascript - window.location.hash problems in firefox -


i have problem concerning site i'm creating

<div id="footer"></div>     <script>     function preloadfunc()     {     window.location.hash = 'footer' } window.onpaint = preloadfunc(); </script> 

above piece of code (placed in head, div positioned 15300px top) redirecting page bottom before else gets loaded (i wanna start bottom up). works here chrome/safari, seems redirect in ff after refresh. there workaround this?

(+ #div in end of url not possible redirecting domain url#div seems not work server side/cpanel. presumably because #div not directory)

i'm pretty sure should

window.onpaint = preloadfunc; 

apparently chrome/safari have no problem understanding location.hash = 'footer' before footer element available (or preprender layout somehow), firefox has no idea there element id footer soon. nothing.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -