সম্পাদনা
<!DOCTYPE html> <html> <body> <p id="result">হ্যালো বিশ্ব</p> <button onclick="execute()">ক্রিয়েট</button> <script> function execute() { const attribute = document.createAttribute("title"); attribute.value = "প্রোগ্রামিং শিখুন"; result.setAttributeNode(attribute); } </script> </body> </html>
পূর্বরূপ