Quick Tip Quick Index

Buttons: Colored Text

OBJECTIVE: Use colored text for an onClick button.

Why not put colored text on a button? It doesn't always work, but it will with the the onClick code.

It's a good idea to use a text color that contrasts with the gray strong, and to bold it.
<DIV ALIGN="center">
<BUTTON onClick="window.location='http://www.use-your-own-url-here.com'">
<FONT COLOR="#663399">
<B>Your<BR>Text Here></B></FONT></BUTTON></DIV>



Back to Quick Tip Quick Index

Caveat: all tutorials are designed for the most frequently used browsers and systems, and may not work in all instances. All files on the parent directory are copyrighted by WebGrammar®. Any reproduction or editing by any means mechanical or electronic without the express written permission of the copyright holder is strictly prohibited. For further information, contact Judy Vorfeld