کد HTML:
<head>
<script type="text/javascript">
function formating(){
alert ("?? ????? ???? ??????? ??? ?????");}
</script>
</head>
<body><form border="12">
string object formating
<hr>
string:<input type ="text" name="textbox" size=30 value="aaa ">
<p>
style : <input type="checkbox" checked="checked" name="choose1" value="1" /> Big
<input type="checkbox" name="choose2" onclick="formating()" /> Bold
<input type="checkbox" name="choose3" /> Italic
<input type="checkbox" name="choose4" /> Small
<input type="checkbox" name="choose5" /> Strike
<p>
Font : color
<select name= "pull down menu">
<option>Red
<option>Green
<option>blue
</select>
size :
<select name= "pull down menu">
<option>8
<option>10
<option>12
<option>14
<option>16
<option>18
<option>20
</select>
<p>
<input type="button" name="submit-button" value="Show" onclick="formating()">
</form>
</body>