Here's the countdown. It restarts the countdown the day after the event, I am just wondering if there is a way to display a message on the date of the event instead of " -1 "
Try this instead of the last line you have:
if(daysLeft <= 0 ) {
document.write('HAPPY HALLOWEEN!!!!!!!')
}
else {
document.write("" + daysLeft + " days til Halloween!");
}
Here's the countdown. It restarts the countdown the day after the event, I am just wondering if there is a way to display a message on the date of the event instead of " -1 "
Try this instead of the last line you have: if(daysLeft <= 0 ) { document.write('HAPPY HALLOWEEN!!!!!!!') } else { document.write("" + daysLeft + " days til Halloween!"); }
Perfect! Thank you so much =D
...and Happy Halloween!!!!