Pass the Text

Pass the text..
Pass the text? What's that? Pass the text is a pointless but fun script... Observe (type something in):


Script by: Tom Brown

     It's almost addictive if you think about it... add this between the <HEAD> and </HEAD> statements:

    <script language=JavaScript>
    function passText() {
      var num1 = document.pass.hid.value;
      if(num1 == 'three') {
        document.pass.one.value = document.pass.three.value
        document.pass.three.value = ""
        document.pass.hid.value = "one"
      }
      else {
        document.pass.three.value = document.pass.one.value
        document.pass.one.value = ""
        document.pass.hid.value = "three"
      }
    }
    </script>
    
Now put this where you want the pass the text to go... (warning! don't change any names!)
  <form name=pass>
    <input type=text name=one
    onChange="document.pass.hid.value='one'; return true">
    <input type=button value="Pass!" onClick="passText()">
    <input type=hidden name=hid>
    <input type=text name=three
    onChange="document.pass.hid.value='three'; return true">
  </form>

Back to the Text-Based Scripts