
Firefox 17 some javascripts do not work
Java Scripts like:
function top()
{
window.location.assign("#top");
}
do not work anymore in Firefox 17. That is links to an "id" of the currant page. Links to a "specific page + id" are o.k. Safari, Chrome and I.E. were all o.k.
วิธีแก้ปัญหาที่เลือก
The root of the problem was that in this case the function "top()" had the same name as the identifier "#top". That does not work anymore in Firefox 17. When I changed the name of the function to "topofpage()" the problem was solved.
Ferdi Stutterheim.
อ่านคำตอบนี้ในบริบท 👍 0การตอบกลับทั้งหมด (4)
You could try
window.location.hash = "top";
Does that work in all browsers?
I have left the scripts out and wrote HTML. Thanks all the same.
วิธีแก้ปัญหาที่เลือก
The root of the problem was that in this case the function "top()" had the same name as the identifier "#top". That does not work anymore in Firefox 17. When I changed the name of the function to "topofpage()" the problem was solved.
Ferdi Stutterheim.