যখন উইন্ডোর ইতিহাস পরিবর্তন হয়, তখন onpopstate ইভেন্টটি ট্রিগার হয়। এটি নিচের মতো যোগ করা যায়:
উদাহরণ
<!DOCTYPE html> <html> <body onpopstate = "onpopstateFunction()"> <p>This is demo text</p> </body> </html>
যখন উইন্ডোর ইতিহাস পরিবর্তন হয়, তখন onpopstate ইভেন্টটি ট্রিগার হয়। এটি নিচের মতো যোগ করা যায়:
<!DOCTYPE html> <html> <body onpopstate = "onpopstateFunction()"> <p>This is demo text</p> </body> </html>