window document write - write html element and more

0 votes

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?

Jul 29, 2022 in HTML by Tejashwini
• 3,820 points

edited 4 days ago 9 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP