Menu
Hello,
This very simple function, and it’s call, doesn’t do anything useful. I wrote it to ask this question. Will the “one” variable below successfully give the button and the getElementById() function their id’s when written this way? Does this adhere to html rules?
[code]
tomorrow = [];
tomorrow[1] = ‘”astringwithquotes”‘;
function place([color=red]one[/color])
{
document.getElementById([color=red]one[/color]);
<button id = [color=red]one[/color]>Click Here</button>
}
place(tomorrow[1]);
Thanks