asked on
ASKER
ASKER
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
<html>
<head>
<title>Script Demo Gops®</title>
<style>body, table,input, select,span{font-family:ve
<script language="javascript">
function populate(f){
var txt="";
txt+=f.nm.value+" is an Ethnicity ";
txt+=f.race.selectedIndex>
txt+=f.assist.checked?" who needs assistance":" who does not need any assistance";
f.summry.value=txt;
}
</script>
</head>
<body>
<form name="txt">
<input type="text" value="" name="nm"><br>
<select id="selObj" name="race">
<option value="">--Choose Race--</option>
<option value="Race1">Race 1</option>
<option value="Race2">Race 2</option>
<option value="Race3">Race 3</option>
</select><br>
<input type="checkbox" value="yes" name="assist"><br>
<textarea name="summry" rows="10" cols="60"></textarea><br>
<input type="button" value="Populate" onClick="populate(this.for
</form>
</body>
</html>