Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello Anyone who is to read this, I am making a little portal for my psp, I know very little about java (onClick, onLoad etc.) , and want to know how to make the font color change as well as the background color with one button,
This is what I have:<INPUT TYPE="BUTTON" name="colr" value="White" onClick="document.bgColor='#ffffff'" onClick="document.fontColor='#000000'">
I either cant put two commands in one button,
or I dont know the change font color command.
can someone tell me what Im doing wrong?
ThanksCuriousity only injured the cat.
I finished it off..
Muahahaha...

That is Javascript NOT Java - they are two entirely different things. And this would be more appropriate in the web development forum.
<input type="button" name="colr" value="White" onclick="document.bgColor='#000000';document.body.style.color='#ffffff';"&ght;
Michael J

![]() |
Copyrighting software
|
Simple DOS Programming Qu...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |