I have a button
<button id="buttonOne" onclick="pressOne()">Press</button>
i was wondering if it was possible using javascript to change the
onclick="pressOne()"
to
onclick="pressTwo()"
so the button would be
<button id="buttonOne" onclick="pressTwo()">Press</button>
Thanks!