sm321
2012-09-21 10:26:28
Hello :) I'm looking to create a JavaScript function of sorts that does this:
Code from www.w3schools.com, it's not my own
I will add the JavaScript tags. I would like it to when the user visits the page the function "plays". How would I go about this please?
Thankyou.
Code from www.w3schools.com, it's not my own
(time<10)
{
x="Good morning";
}
else if (time<20)
{
x="Good day";
}
else
{
x="Good evening";
}I will add the JavaScript tags. I would like it to when the user visits the page the function "plays". How would I go about this please?
Thankyou.