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
Post a Comment