Changing Content of a DHTMLLayer
function processbutton3() { // Process content from form text field
var inputstuff = WW_formlayer.document.classtest.textchoice.value;
if(WW_Netscape4) { // Netscape
WW_messageobject.document.open();
WW_messageobject.document.writeln(inputstuff);
WW_messageobject.document.close(); }
else { // Microsoft is much more elegant
WW_messageobject.innerHTML = inputstuff;
WW_messageobject.style.width = 300; }
// Seemingly Netscape clips text layer to width of text; Microsoft to width of window; both clip vertical height to that of text; this is typical difference between
today’s erratic implementations of DHTML
WW_layertotop(WW_messageobject); // Set layer zindex to 1000
WW_layershow(WW_messageobject); // Make layer visible
} // End processbutton3()
Note in Netscape full address is
window.document.layer.document.property