Jump to content

Pending Javascript Scripts


Blokert

Recommended Posts

Guest FirefoxRocks
var d = new Date();var hour = d.getHours();var minutes = d.getMinutes();if(hour===0 && minutes===0){	alert("Hello World!! Mozilla Firefox rocks!!");}

Unless I'm wrong about the type comparison, this should work, if it doesn't try putting quotes around the zeros or using == instead of ===.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...