This works with the onclick attribute:
<button type="button" onclick="this.style.color='red';">Astringents</button>
This works in the onclick attribute but not if called from the head element:
<head>
<script type="text/javascript">
function red() {
this.style.color='red';
}
</script>
</head>
<button type="button" onclick="red();">Astringents</button>
EDIT: I want to use one function to serve several buttons. For example:
<button type="button" onclick="red();">Astringents</button>
<button type="button" onclick="red();">Exfoliators</button>
<button type="button" onclick="red();">Moisturizers</button>
<button type="button" onclick="red();">Masques</button/>