I have a weird question and i don't know what to search to find the answer for it
Can I give an html button's onclick function args? onclick="func('Wednesday')"
function func(a) {
if (a == "Wednesday") {
var day = a;
}
} else {
var day = "not Wednesday";
}
Given that this is possible, is there a way to take this var and send it to another file, preferably a php file?
sorry if this is a repeat, im new