what is the proper way to have an event handler call a method which needs arguments e.g
<input type="button" name="Blue" value="blue" onclick=bgcol("blue")>
All attributes should have used "" e.g with name, name="blue" however if i do this for the onclick it wont work since it can't match the speech marks. THis code does work however isn't validated using w3 validator. So whats the proper way to do this? bgcol is a function which takes an argument colour and simply sets the background colour to that argument. Can this be done using only one function bgcol?