অনলোড ব্যবহার করুন৷ এলিমেন্ট লোড করা শেষ হলে একটি স্ক্রিপ্ট চালানোর জন্য অ্যাট্রিবিউট।
উদাহরণ
অনলোড অ্যাট্রিবিউট -
প্রয়োগ করতে আপনি নিম্নলিখিত কোডটি চালানোর চেষ্টা করতে পারেন৷<!DOCTYPE html>
<html>
<head>
<script>
function display() {
alert("Welcome!");
}
</script>
</head>
<body onload = "display()">
<h3>Welcome to the website.</h3>
<p>We offer learning content.</p>
</body>
</html>