জাভাস্ক্রিপ্টের সাথে একটি অবস্থানকৃত উপাদানের নীচের অবস্থান সেট করতে, নীচে ব্যবহার করুন সম্পত্তি।
উদাহরণ
নিচের অবস্থান কীভাবে সেট করবেন তা শিখতে আপনি নিম্নলিখিত কোডটি চালানোর চেষ্টা করতে পারেন −
<!DOCTYPE html>
<html>
<head>
<style>
#newBtn {
position: absolute;
}
</style>
</head>
<body>
<button type="button" id="newBtn" type="button" onclick="display()">Set Bottom Position</button>
<script>
function display() {
document.getElementById("newBtn").style.bottom = "400px";
}
</script>
</body>
</html>