<head> <title>Helo World</title> <script type='text/javascript'> function ShowSelection() { try{ alert('Your selection is ' + SelectColor.value); BodyContent.style.backgroundColor = SelectColor.value; } catch(e){alert('An error has occurred: '+e.message)} } </script> </head> <body> <div id="BodyContent"> <hr /> Select a color theme: <select id="SelectColor"> <option value="white">White</option> <option value="yellow">Yellow</option> <option value="silver">Silver</option> </select> <input id="SelectionBTN" type="button" value="Select" onclick="ShowSelection()" /> br mode="hold" /> </div> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)