ใช้ ออนสตอเรจ แอตทริบิวต์ใน HTML เพื่อดำเนินการในการอัปเดตพื้นที่เก็บข้อมูลบนเว็บ คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้งาน ontorage แอตทริบิวต์ −
ตัวอย่าง
<!doctype html>
<html>
<head><title>HTML onstorage</title>
</head>
<body>
<h2>Welcome</h2>
<body onstorage = "javascript:alert('Your learning journey!');">
Demo text</body>
</body>
</html>