Write an HTML page that contains a text field for a phone number and a button. When the button is clicked check that the text field has only numeric characters (and maybe a dash ’-’) in it. If not, use an alert dialog to inform the user.
What will be an ideal response?
```
A Simple Heading
This is a very simple web page. It asks you for your
phone number
and when you click the button
it will check if the phone number is okay (digits and - only).
```
You might also like to view...
Case-Based Critical Thinking QuestionsCase 5-2Sana has successfully created a button for her document, but she is stymied about what to do next. She turns to her friend Alanna with some questions. Which of the following is NOT a true statement that Alanna can make to Sana about ActionScript?
A. ActionScript 3.0, unlike ActionScript 2.0, is based on object-oriented programming (OOP) principles. B. ActionScript 3.0 is more flexible and powerful than ActionScript 2.0 and is easier to learn for people new to programming. C. You can run SWF files that contain ActionScript 2.0 or earlier in current versions of Flash Player. D. ActionScript 3.0 is a robust programming language designed to enable Flash developers to create highly complex applications.
Describe connection oriented service and explain how it provides reliable communication.
What will be an ideal response?
Bloggers often used code ______ to create hyperlinks and embed photos in postings.
A. ?widgets B. ?snippets C. ?breakers D. ?hackers
Recursion often is preferable to iteration because ________.
a. it is faster. b. it requires less memory. c. it models the problem more logically. d. All of the above.