Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> javascript redirect nie dziala
miojamo
post 14.06.2010, 13:54:39
Post #1





Grupa: Zarejestrowani
Postów: 46
Pomógł: 0
Dołączył: 28.05.2010

Ostrzeżenie: (0%)
-----


Witam,


Próbuje wywołać anchora po redirect niestety nie dziala. Dodaje anchora na koncu ale redirect nie dziala w FF.

  1. if (!window.location.hash)
  2. {
  3. window.location.replace(window.location.href + unescape("#video"))
  4. return false;
  5.  
  6. }
  7. else
  8. {
  9. newItem = nextItem(window.location.hash)
  10. if (document.getElementById(newItem))
  11. {
  12. window.location.replace(stripHash(window.location) + "#" + newItem)
  13. }
  14. else
  15. {
  16. window.location.replace(stripHash(window.location) + "#video")
  17. }
  18. }


Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 20.07.2025 - 05:57