Change tag sequence : place « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      function testIt() {
        dojo.place("node2", "node1", "after");
        alert("before");
        dojo.place("node2", "node1", "before");
      }
    </script>
  </head>
  <body onLoad="testIt();">
    <div id="node1">Node1</div>
    <div id="node3">Node3</div>
    <div id="node2">Node2</div>
  </body>
</html>








29.43.place
29.43.1.Change tag sequence