javascript - Check if event.target has Children -
<h1>this puzzle</h1> <h3>by julian blaschke </h3> <h4 id ="result">its wrong<h4> <table> <tr> <th>puzzle</th> </tr> <tr> <td><div id="dropdiv1" ondrop="drop(event)" ondragover="allowdrop(event)"></div></td> <td><div id="dropdiv2" ondrop="drop(event)" ondragover="allowdrop(event)"></div></td> <td><div id="dropdiv3" ondrop="drop(event)" ondragover="allowdrop(event)"></div></td> </tr> <tr> <td><div id="dropdiv4" ondrop="drop(event)" ondragover="allowdrop(event)"></div></td> <td><div id="dropdiv5" ondrop="drop(event)" ondragover="allowdrop(event)"></div></td> <td><div id="dropdiv6" ondrop...