|
|
DHTML |
| DHTML stands for Dynamic Hypertext Mark-up Language |
|
With DHTML you can manipulate objects on your web page by reffering to their names.
By knowing their true names you have total power over them, and can conjure them up when ever you wish (too much Wizard of Earth Sea). |
| In order to control the objects on your page, you must name them first... Well, it makes it a lot easier. |
|
Here is an example of how you would name an image: <img src="xmpl.jpg" name="example"> |
|
You can then create an alert box that shows you the value of src by using this snippet of code:
alert('The source is " + document.example.src); |
the Prompt Function |
|
| The Prompt command brings up a small window for the user to enter one line of text in. | |
|
The code I used for the button was: <input type="button" onclick="javascript:var temp = prompt('pretty groovy, huh?','write your response here');" value="See it in action!"> Whew! | |
| The variable temp contains whatever the user types in the prompt box. |