Jump to content

Pending Javascript Scripts


Blokert
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...