<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function performTest() | |
{ | |
Cursor_insertCharacter("-",true); | |
var text = getNodeText(document.body).replace(/\s+$/,""); | |
var charCode = text.charCodeAt(text.length-1); | |
var p = DOM_createElement(document,"P"); | |
DOM_appendChild(p,DOM_createTextNode(document,"charCode = "+charCode)); | |
DOM_appendChild(document.body,p); | |
showSelection(); | |
} | |
</script> | |
</head> | |
<body> | |
<p>Hyphen: Test[]</p> | |
</body> | |
</html> |