When using IE10 I am getting the error JavaScript runtime error: Unable to get property 'top' of undefined or null reference
when trying to click a hyperlink to a webpage within the same project, the JavaScript should scroll to the corresponding position on the page.
If I use any other browser, other than IE it works from page to page. If however I use the same references within the same page it will scroll up and down in all browsers, but not in IE when leaving the page.
Link
<li><a href="index.html#home_section">Home</a></li>
I am using jquery.nav.js
version 3.0.0 and the page is breaking at var offset = $(target).offset().top;
.
Any help would be much appreciated :-)
Aucun commentaire:
Enregistrer un commentaire