I'm trying to open up a new browser window, and copy a table from the parent window into this new window. I'm using Prototype.js and this is the code I have:
prog_window = window.open();
prog_window.document.write("<html><body></body></html>");
table_clone = Element.clone('prog_table',true);
prog_window.document.addElement(table_clone);
I get an error on the third line: "TypeError: Result of expression 'Element.clone' [undefined] is not a function." I've tried a few variations for the third line, but I always get the same error. I've quadruple checked the id of the so that is not the problem. Documentation on the clone function is extremely limited, so if there is something I'm missing, could someone please point it out?
Thanks in advance, Dave