News

That's all it takes to create an HTML input element and assign it to a variable named "box." The box object doesn't become a text box until you give its type attribute a value of "text" as shown ...
It's been a while since I worked on regexs in JavaScript, but generally the way you do this in most programming languages is to build the regex as a string and then pass it into the regex engine.