<html> <body> Sample Text<br> <button onclick="document.fgColor='red';">Red</button> <button onclick="document.fgColor='blue';">Blue</button> </body> </html>