This method creates a new box of type "aTag". The returned "box" object has not
been added to the DOM. The new box must be added in the DOM before it is activated.
See the box class documentation for
more information.
function onAddButton()
{
var button = scene.createBox("button");
if (button)
{
button.setAttribute("id", "testButton");
button.setAttribute("label", "Added Button");
var rootBox = scene.rootBox;
if (rootBox)
{
rootBox.addChild(myButton);
}
}
}