Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Saznaj više

Firefox 17 some javascripts do not work

  • 4 odgovora
  • 3 imaju ovaj problem
  • 1 prikaz
  • Posljednji odgovor od fwstutterheim

more options

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.

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.

Izabrano rješenje

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.

Pročitaj ovaj odgovor u kontekstu 👍 0

Svi odgovori (4)

more options

You could try

window.location.hash = "top";

Does that work in all browsers?

more options
more options

I have left the scripts out and wrote HTML. Thanks all the same.

more options

Odabrano rješenje

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.