javascript - IE8 only jumps back to top of previous page not where I was before (but only with JS on) -


i have horrible, scattered page lots of javascript:

it has list view , if can watch 1 of items in list in detail.

the problem if want go details view list view using browser button different results.

in chrome , firefox, in ie7 end clicked, not in ie8.

to make more confusing, if switch javascript off works ie8 well.

the problem don't search. know problem or @ least javascript method or function affect this?

it difficult provide definitive answer without code. tentative answer based on past experiences ie:

ies have different behaviors, ie8 @ crossing of old , standard versions [ie6-, ie7] , newer ie9 better sticks standards. in particular in javascript, ies may picky compared non-ie browsers.

that back behavior happen if js error triggered either when leave page (thanks link click), or when come (which easier spot)

  • check if error occurs when leaving (or coming back) @ bottom of page
  • the click action delayed settimeout function set window.location.href give enough time spot error before page left
  • if redirect "manual" (like window.location.href= opposed simple <a> tag) try add try {} catch around code run after element clicked (like this onbeforeunload bug).

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -