Change tag sequence : place « Dojo toolkit « JavaScript DHTML






Change tag sequence

 

<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>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category