Form Control JavaScript DHTML



  
    function showWindow(){
      var txt = document.form1.stringField.value
      if (document.form1.hypertext[0].checked){
        txt = txt.link(document.form1.jumptoField.value);
      }else{
        if (document.form1.hypertext[1].checked){
          txt = txt.anchor(document.form1.jumptoField.value);
        }
      }
      document.write(txt);
    }
  


  
      Text:
      
      
      Link:
      
      Anchor:
      Jump To: