<html>
<head>
<script>

function boom()
{
  document.getElementById("div").contentEditable = "true";
  document.getElementById("div").focus();
  document.getElementById("div").contentEditable = "false";
  
  document.getElementById("table").contentEditable = "true";
}

</script>
</head>

<body onload="boom();">

<table id="table"><td></td></table><div id="div"></div>

</body>

</html>