Menu
Hello all. I’m trying to develop a WYSYWIG html editor. I’m trying to allow the use to create a hyperlink. Below is my code and it works…sort of. Instead of creating a link it is creating a link that looks like this:
[code]
function doEdit2(edit) {
var tr2 = frames.body.document.selection.createRange()
tr2.execCommand(edit)
tr2.select()
frames.body.focus()
}
function set_y() {
var y = body.document.body.innerHTML;
document.theform.body.value = y;
}
I’m calling the function like this: onClick=’doEdit(“CreateLink”)’