Mam dwie funkcje, jak wcisne buttona z onclikiem to wykonują się, ale pasek adresu rozpoczyna ładowanie i nie kończy. Nie powinien wogóle rozpoczynać ładowania, nie powinno być iksa tylko ikona odśwież.

  1. function data(){
  2. function getDateStr(){
  3. var selectmenu=document.getElementById("godzina")
  4.  
  5. MonthName = new Array(12)
  6. MonthName[0] = "stycznia "
  7. MonthName[1] = "lutego "
  8. MonthName[2] = "marca "
  9. MonthName[3] = "kwietnia "
  10. MonthName[4] = "maja "
  11. MonthName[5] = "czerwca "
  12. MonthName[6] = "lipca "
  13. MonthName[7] = "sierpnia "
  14. MonthName[8] = "września "
  15. MonthName[9] = "pa1dziernika "
  16. MonthName[10] = "listopada "
  17. MonthName[11] = "grudnia "
  18.  
  19.  
  20. var Today = new Date()
  21. var WeekDay = Today.getDay()
  22. var Month = Today.getMonth()
  23. var Day = Today.getDate()
  24. var Year = Today.getFullYear()
  25.  
  26. if(Year <= 99)
  27. Year += 1900
  28.  
  29. return Day + " " + MonthName[Month] + " " + Year + " r."
  30. }
  31. document.getElementById('textbox').contentWindow.document.write(getDateStr());
  32. }
  33.  
  34. function gettime(){
  35.  
  36. function getTimeStr(){
  37. var now = new Date();
  38.  
  39. var hours = now.getHours();
  40. hours = ((hours > 24) ? hours - 24 : hours);
  41.  
  42. var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
  43. var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
  44. var TimeValue =(" " + hours + minutes + seconds + " ");
  45.  
  46. return TimeValue;
  47. }
  48. document.getElementById('textbox').contentWindow.document.write(getTimeStr());
  49. }


po prostu nie powinno być paska wczytywanie