Advertisement
svetoslavhl

13

Jun 2nd, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Script-Type" content="text/javascript" />
  5. <title>JavaScript day name function</title>
  6. <script type="text/javascript">
  7. <!--
  8. function getDayName()
  9. {
  10. var date=new Date();
  11. var arrDayNames = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday", "Saturday"];
  12. return arrDayNames[date.getDay()]
  13. }
  14. // -->
  15. </script>
  16. </head>
  17. <body>
  18. <!-- File: listing-7-13.htm -->
  19. <script type="text/javascript">
  20. <!--
  21. document.write(getDayName());
  22. // -->
  23. </script>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement