javascript_howto thread: triggering link to var function
var curDate = new
Date();
var day = curDate.getDay();
if (day == 0)
//run Sunday function
if (day == 1)
//run Monday function
if (day == 2)
//run Tuesday function
if (day == 3)
//run Wednesday function
if (day == 4)
//run Thursday function
if (day == 5)
//run Friday function
if (day == 6)
//run Saturday function
here is the code: i want to create a link "Daily Specials" that will be placed in the body of a webpage, when this link is clicked I
want the above
function to run, when it determines the day of the week it is i want a specific html page to open with that days specials.
so i need to know two things:
#! how to call this function from a link
#2 how to call a html page from the //run... action.
thanks
james
|





