1// Function to prevent the back button 2function preventBack() { 3 window.history.pushState(null, "", window.location.href); 4} 5 6// Call preventBack when the page loads 7window.onload = function () { 8 preventBack(); 9 // Listen for popstate event and call preventBack 10 window.addEventListener('popstate', function (event) { 11 preventBack(); 12 }); 13}; 14 15function DisableBackButton() { 16 window.history.forward() 17} 18DisableBackButton(); 19window.onload = DisableBackButton; 20window.onpageshow = function (evt) { if (evt.persisted) DisableBackButton() } 21window.onunload = function () { void (0) }
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.