How can i get (change run time) tool tip text of buttons created in HTML?

Luke Latimer

This works as an example of changing the title property of a button dynamically

<script language="javascript">

function updateTipText()





<input type="button" id="tipText" title="tool tip text" value="a button">
<input type="text" id="newText">
<input type="button" id="changeText" value="update tool tip"
  onClick="javascript: updateTipText()">