<html>
<head>
  <script language="javascript">
      function button_onclick () {
        el = document.getElementById ('text');
	el.innerHTML = "you clicked me!";
      }
  </script>
</head>

<body>
  <span id="text">you haven't clicked me...</span><br/>
  <button id="button" onClick="javascript:button_onclick()">Click me!</button>




  <!-- the test for the above html -->
  <script language="javascript">

    var TestFixture = {
        test_button: function() {
    	JSUnit_BindElement ("text");

    	As