A button is now present in the new window that I have just opened. A JavaScript method that should submit the form and insert some material into a p> is located beneath this button. There is also an HTML element in this "to-add" content (close button).
This inserting operation is broken. What I did was as follows:
myWindow.document.write("<scrip" + "t>function closeme(){ document.getElementById('danke').innerHTML='thanks <input type=\'button\' onclick=\'window.close()\'/>'; } </sc" + "ript>");
Can someone please help me out?