Computing.Net > Forums > Programming > Java commands (This IS Programming)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java commands (This IS Programming)

Reply to Message Icon

Name: go_places_puterwize
Date: December 10, 2006 at 19:01:51 Pacific
OS: Windows Server 2003 Stand
CPU/Ram: P4/256
Product: GATEWAY/300S
Comment:

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?
Thanks

Curiousity only injured the cat.
I finished it off..
Muahahaha...



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: December 10, 2006 at 21:56:27 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More


Copyrighting software Simple DOS Programming Qu...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Java commands (This IS Programming)

Java - how to launch programs www.computing.net/answers/programming/java-how-to-launch-programs-/7119.html

Java command help www.computing.net/answers/programming/java-command-help/14947.html

java programming homework help! www.computing.net/answers/programming/java-programming-homework-help/5397.html