Currently i am trying to figure out how to change background color of a document and the text color with the click of a button, but so far i can only get the background color to change :\ heres what im using...
any ideas on how to get the text color to change when the button is clicked?Code:<html><head><title>TEST</title></head> <body text="black"> <h2>Testing...</h2> <FORM> <INPUT type="button" value="Change bg and text color" name="button3" onClick="document.bgColor='yellow'" onmousedown="document.text='red'"> </FORM> </font> </html>



Reply With Quote


Bookmarks