Write an HTML page that contains a text ¯eld for a credit card number and a button. When the button is clicked check that the text ¯eld has only numeric characters in it and check that the number of characters is 16. 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 credit
card number and when you click the button
it will check if the number is okay (16 digits only).


Enter your credit card number:



onClick="checkCreditCardNumber()">



```

Computer Science & Information Technology

You might also like to view...

When bridging is used with a satellite link, two bridges are typically used, one on each side. Explain why.

What will be an ideal response?

Computer Science & Information Technology

The 40 MHz channels in an 802.11n WLAN are actually two 20 MHz channels that are __________ together.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Slide layout refers to the placement of content ________ on a slide

Fill in the blank(s) with correct word

Computer Science & Information Technology

An email's message header contains ____.

A. the email address of the recipient(s) B. the subject line C. the message area D. a signature line

Computer Science & Information Technology