Forum Moderators: open
I'm making a simple form, and was wondering if any of you guys could give me a pointer on how to make those buttons to add bold tags, hyperlinks etc. to the form using a popup window?
<html>
<head>
function addtag(tag)
{editing=document.getElementById('edittext');
editing.value+=tag;
}
</head>
<body>
<input id="edittext" type="text">
<input type="button" value="Add Bold" onclick="addtag("[b]">
<input type="button" value="Add Itallic" onclick="addtag("[i]")>
</body>