Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.63 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title> Tytuł Strony - Numer: 15 </title>
  4. <meta charset="utf-8" />
  5. <script type="text/javascript">
  6. var url = document.URL;
  7. var title = document.title;
  8. var modified = document.lastModified;
  9.  
  10. function refresh() {
  11.     location.reload();
  12. }
  13.  
  14. function close() {
  15.     window.top.close();
  16. }
  17.  
  18. function browarowa() {
  19.     location.href='http://www.browarowa.pl'
  20. }
  21.  
  22. function ramka() {
  23.     var x = document.createElement("IFRAME");
  24.     x.setAttribute("src", document.URL);
  25.     document.body.appendChild(x);
  26. }
  27.  
  28. document.writeln("<hr>")
  29. document.writeln("Tytuł strony: <strong>" + title + "</strong> <br>");
  30. document.writeln("Adres URL: <strong>" + url + "</strong> <br>");
  31. document.writeln("Ostatnia modyfikacja: <strong>" + modified + "</strong> <br>");
  32. document.writeln("<hr>")
  33. document.writeln("Nazwa: <strong>" + navigator.appName + "</strong> <br>")
  34. document.writeln("Wersja: <strong>" + navigator.appVersion + "</strong> <br>")
  35. document.writeln("Język: <strong>" + navigator.language + "</strong> <br>")
  36. document.writeln("<hr>")
  37. document.writeln("Szerokość: <strong>" + screen.width + " px</strong> <br>");
  38. document.writeln("Wysokość: <strong>" + screen.height + " px</strong> <br>");
  39. document.writeln("Głębia kolorów: <strong>" + screen.colorDepth + " </strong> <br>");
  40. document.writeln("<hr>")
  41. </script>
  42. </head>
  43.  
  44. <body>
  45.  
  46. <p><button onclick="refresh();">Przeładnie strony</button></p>
  47. <!-- To coś się psuje -->
  48. <p><button onclick="close();">Zamknięcie strony</button></p>
  49. <p><button onclick="browarowa();">ZSP Żnin</button></p>
  50. <p><button onclick="ramka();">200px na 200px</button></p>
  51. </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement