Trigger said:Code:<html> <head> <title>JavaScript Alerts!</title> </head> <body> <script language="javaScript" type="text/javascript"> </script> <div align="center"> <form acriotn="" method="POST"> <input type="button" name="alertbutton" value="Click Me!" onClick="alert('Change this text whilst preserving the quotation marks to what you wish to appear in the messagebox...')"></input> </form> </div> </body> </html>
Triad2000 said:"I'm sure I've done this before using either HTML or Javascript..." or have I had too many beers?
jonnyg said:Dude, i asked practically the same question and no-one answered me, so ill tag on your thread - can you use a drop down box to select an <option> which then affects what appears in the said text box...?
<form name="form1">
<select name="Colour">
<option selected>--Select Colour</option>
<option value="Red" onClick="document.form1.output.value='Red'">Red</option>
<option value="Green" onClick="document.form1.output.value='Green'">Green</option>
<option value="Blue" onClick="document.form1.output.value='Blue'">Blue</option>
</select>
<br>
<textarea name="output">
</textarea>
</form>