setTitle.html

<HTML>

<HEAD>

<script>var dFrameFilePath = '../../../../../dFrame/'</script>

<script language="Javascript" src="../../../../../dFrame/dFrame/lib/DFrameAPI.js"></script>

<script language="Javascript1.2">

//Style

DFrameAPI.include('dFrame/styles/blue/styleBlue.js')

DFrameAPI.include('dFrame/styles/windows/styleWindows.js')

DFrameAPI.onLoad = function(){

//Create a DFrameStyle

//DFrameAPI.checkStyles(true)

//Create a DFrame

var dFrame1 = new DFrame([0, 0, 100, 100], 'setTitle.html', dFrameStyle);

dFrame1.addTaskBar()

dFrame1.addToTaskBars(false)

//Create a DFrame

var dFrame2 = new DFrame([30, 30, 60, 60], 'dFrame2', dFrameStyle);

dFrame2.addButton('Change Title', 'thisDFrame.setTitle("This is the new Title for dFrame2")')

dFrame2.addButton('Change Title for task Bar only', 'thisDFrame.setTaskBarTitle("New task Bar title")')

dFrame1.show()

dFrame2.show()

}

</script>

</HEAD>

</HTML>