クリックされたときに div contentEditable を作成し、マウスアウト時に contentEditable を false に設定しようとしていますが、これまでのところ成功していません。リンクをクリックするとハイライト表示されますが、それ以外は何もしません:
<div id="content" contentEditable="true" onclick = "this.contentEditable = true;" onmouseout = "this.contentEditable = false;">
Surprisingly, <a href="http://google.com">clicking this link does nothing at all.</a> How can I fix this problem?
</div>
リンクをクリックするとリンク先のページに移動すると思っていましたが、クリックすると強調表示され、他に何もしませんでした。この問題を解決するにはどうすればよいですか?