scroots
10-18-2003, 09:50 PM
if i have
function newevent(val){
alert(val);
}
<input type="button" value="Add a new event here" Onclick="newevent(abcd);">
how can i get it to alert "abcd" instead of "[object]". I understand i am passing it as an object and i need to pass it this way as i use the object bit for something else. so how can i do it without replacing Onclick="newevent(abcd);" with Onclick="newevent('abcd');"
scroots
function newevent(val){
alert(val);
}
<input type="button" value="Add a new event here" Onclick="newevent(abcd);">
how can i get it to alert "abcd" instead of "[object]". I understand i am passing it as an object and i need to pass it this way as i use the object bit for something else. so how can i do it without replacing Onclick="newevent(abcd);" with Onclick="newevent('abcd');"
scroots