ScottInTexas
12-16-2002, 02:33 PM
I have a button in an iframe that is written only when data is in another frame. The problem is that the button is toggling there and not there. Following the program with alerts, it is getting written whenever the data is updated in the other frame, but if it was already present it gets erased. I want to test to see if the button is there and if it is just skip the routine.
function SetPrintButton(){
var objFrame=self.frames["printFrame"];
objFrame.document.write('<input type="button" id="printit" value="Print Table" onclick="parent.doPrint()">');
}
Thanks for the help,
function SetPrintButton(){
var objFrame=self.frames["printFrame"];
objFrame.document.write('<input type="button" id="printit" value="Print Table" onclick="parent.doPrint()">');
}
Thanks for the help,