I'm trying to get all the innerHTML
of my web form, here's what I'm doing:
I need to be able to do this for parent of the window. So to begin, using var = dialog I get the window.parent as shown below:
function PrintForm() {
var dialog = window.parent.wdwBHForm;
}
Now I'm trying to use dialog (parent of window) to get all innerHTML, because my end goal is to be able to print it.
var html = dialog.contentDocument.documentElement.innerHTML
I've tried this line above, but it doesn't work.
I also have infragistics control that I need to get innerHTML
for - I hope I'd be able to do the same.
Any idea?