girlinterrupted24
Programmer
Hey there,
I just wondered if someone could help me adapt my code a little... basically it adds html style to form box content, but at the moment regardless of where the mouse cursor is within the form box when you click to add the style, it always places it at the end of the content... does anyone know how to get it to insert it at the cursor point at the time of clicking?
function addtag(tag) {
box_content = document.updateContent.content.value + tag
document.updateContent.content.value = box_content
document.updateContent.content.focus()
}
Many many thanks for any help
I just wondered if someone could help me adapt my code a little... basically it adds html style to form box content, but at the moment regardless of where the mouse cursor is within the form box when you click to add the style, it always places it at the end of the content... does anyone know how to get it to insert it at the cursor point at the time of clicking?
function addtag(tag) {
box_content = document.updateContent.content.value + tag
document.updateContent.content.value = box_content
document.updateContent.content.focus()
}
Many many thanks for any help