I am so new in this, I don't know how to finish my homework-question. I have to go to bed now ánd need to find an answer a.s.a.p. Who is willing to help this Dutch boy?
I have to count the number of cars in a carparking. So far so good. But:
If number of cars >100 there should popup an alert "GARAGE FULL"
If number of cars =0 there should popup an alert "GARAGE EMPTY"
This is how far I have come in 4 hours. ;-)
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>Carparking</title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
- <meta name="generator" content="HAPedit 3.1">
- </head>
- <body bgcolor="#ABCDDE">
- Carparking <br><br>
- <input type="submit" value="car driving in" onclick="document.getElementById('vak').value++; return false;" /> <br />
- <input type="submit" value="auto driving out" onclick="document.getElementById('vak').value--; return false;" /> <br />
- <input type="text" id="vak" value="0" /> the number of cars in the carparking
- <br /><br />
- </body>
- </html>
THANKS!!