function start()
{
 document.getElementById( "byIdButton" ).addEventListener(
 "click", byId, false );
 document.getElementById( "insertButton" ).addEventListener(
 "click", insert, false );
 document.getElementById( "appendButton" ).addEventListener(
 "click", appendNode, false );
 document.getElementById( "replaceButton" ).addEventListener(
 "click", replaceCurrent, false );
 document.getElementById( "removeButton" ).addEventListener(
 "click", remove, false );
 document.getElementById( "parentButton" ).addEventListener(
 "click", parent, false );

 // initialize currentNode
 currentNode = document.getElementById( "bigheading" );
 } // end function start

// register event handlers and initialize currentNode

register event handlers and initialize currentNode
register event handlers and initialize currentNode
function start()
{
 document.getElementById( "byIdButton" ).addEventListener(
 "click", byId, false );
 document.getElementById( "insertButton" ).addEventListener(
 "click", insert, false );
 document.getElementById( "appendButton" ).addEventListener(
 "click", appendNode, false );
 document.getElementById( "replaceButton" ).addEventListener(
 "click", replaceCurrent, false );
 document.getElementById( "removeButton" ).addEventListener(
 "click", remove, false );
 document.getElementById( "parentButton" ).addEventListener(
 "click", parent, false );
 currentNode = document.getElementById( "bigheading" );
 } 
function start ( ) { document . getElementById ( "byIdButton" ) . addEventListener ( "click" , byId , false ) ; document . getElementById ( "insertButton" ) . addEventListener ( "click" , insert , false ) ; document . getElementById ( "appendButton" ) . addEventListener ( "click" , appendNode , false ) ; document . getElementById ( "replaceButton" ) . addEventListener ( "click" , replaceCurrent , false ) ; document . getElementById ( "removeButton" ) . addEventListener ( "click" , remove , false ) ; document . getElementById ( "parentButton" ) . addEventListener ( "click" , parent , false ) ; currentNode = document . getElementById ( "bigheading" ) ; }
register event handlers and initialize currentNode
register event handlers and initialize currentNode
// initialize currentNode
 // end function start
