We have a javascript function that should "move" a page to a certain position using anchors. This function just does window.location.href = "#" + hashName
. This works in FF, but not in IE. I tested this code using IE7 under Windows XP.
I have tried using window.location.href
, window.location.hash
, window.location.replace
and all these ways, but using document
object.
Does anyone know how to deal with this issue?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…