সম্পাদনা
<!DOCTYPE html> <html> <body> <div id="result"></div> <button onclick="adopt()">click to view result</button> <script> function adopt() { const other = document.implementation.createHTMLDocument(); const node = other.createElement("p"); node.textContent = "প্রোগ্রামিং শিখুন"; result.append(document.adoptNode(node)); } </script> </body> </html>
পূর্বরূপ