Write an HTML page that contains a text ¯eld for a phone number and a button. When the button is clicked check that the text ¯eld 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 Web Page


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).


Enter your phonenumber:



onClick="checkPhoneNumber()">



```

Computer Science & Information Technology

You might also like to view...

Which of the following encompasses the other three?

a. Sequence structure. b. Repetition structure. c. Control structure. d. Selection structure.

Computer Science & Information Technology

Which of the following is an access control that is based on a specific job role or function?

A) Mandatory access control B) Discretionary access control C) Role-based access control D) Rule-based access control

Computer Science & Information Technology

Use istream member function read to input 50 characters into char array line.

What will be an ideal response?

Computer Science & Information Technology

Describe the syntax for a function template.

What will be an ideal response?

Computer Science & Information Technology