<html> | |
<head> | |
<script> | |
window.onload = function () { | |
document.designMode = 'on'; | |
var br = document.getElementById('br'); | |
br.appendChild(document.createElement('div')); | |
document.getSelection().collapse(br, 0); | |
document.execCommand('InsertUnorderedList', false, false); | |
window.parent.postMessage('FINISH', '*'); | |
} | |
</script> | |
</head> | |
<body> | |
<ul><li><br id='br' /></li></ul> | |
</body> | |
</html> |