Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Display a Default Message If Nothing Has Been Typed Into a Text Box?

(image) Hey, Scripting Guy! Sometimes you go to a Web page and you’ll see a text box that includes some instructions, something like “Please type a description in this box.” When you click on the text box, those instructions disappear; however, if you click on the box, don’t type in a description and then click somewhere else, then ...

How Can I Ensure That a User Enters Only Allowed Characters in a Text Box?

(image) Hey, Scripting Guy! I have an HTA which includes a text box where the user must enter a part number. Part numbers must consist of a certain set of characters; how can I determine if a user entered an invalid character in the part number text box?-- RR (image) (image) (image) Hey, RR. You know, with one exception, no one has ever ...

How Can I Export an HTA Table to Excel?

(image) Hey, Scripting Guy! How can I put a button in an HTA that, when clicked, exports an HTML table to Excel?-- DW (image) (image) (image) Hey, DW. You know, yesterday afternoon the Scripting Guy who writes this column went to get his hair cut, figuring he needs to look his best for TechEd 2007. (It was only after he got his hair cut ...