Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to get a button that will bold text in a textarea when it gets clicked. My code snippet is below, When I hit the button I get an error, "Object required".
My guess is that it is looking it cant find the textarea called "content". Any suggestions please!!
<td width="100%" valign="top">
<p><font color="#000000" size="2" face="arial">
<textarea name="content" cols="47" rows="4">
</textarea>
<br>
<!--- Bolding Text Script--->
<script language="VBScript">
public sub cmdmakebold_onClick()
content.text.bold = true
End Sub
</script>
My guess is that it is looking it cant find the textarea called "content". Any suggestions please!!
<td width="100%" valign="top">
<p><font color="#000000" size="2" face="arial">
<textarea name="content" cols="47" rows="4">
</textarea>
<br>
<!--- Bolding Text Script--->
<script language="VBScript">
public sub cmdmakebold_onClick()
content.text.bold = true
End Sub
</script>