I want a textarea and a button. Like this:
<textarea id="test"></textarea>
<input type="button">
I want it so when you click onto the button then type into the text area the text is bold though when you click onto the button again the bold text stops and normal text continues.
To put it in a more simple format i want a bold button like in microsoft word.
You can use this function for the button clicks:
script type="text/javascript">
<!--
var i;
function twoAlerts() {
if(i==1) {
i=0;
}
else {
i=1;
}
}
//-->
</script>
<input type="button" name="test" onclick="twoAlerts()>
<textarea id="test"></textarea>
<textarea id="test"></textarea>
<input type="button">
I want it so when you click onto the button then type into the text area the text is bold though when you click onto the button again the bold text stops and normal text continues.
To put it in a more simple format i want a bold button like in microsoft word.
You can use this function for the button clicks:
script type="text/javascript">
<!--
var i;
function twoAlerts() {
if(i==1) {
i=0;
}
else {
i=1;
}
}
//-->
</script>
<input type="button" name="test" onclick="twoAlerts()>
<textarea id="test"></textarea>