1 [Code]Hỏi trước khi muốn thoát Thu 20 Dec - 6:32
Demo : [You must be registered and logged in to see this image.]
Admin Panel -> Modules -> JavaScript Codes Management -> Title it "Thoát" - >
Vị trí "In all pages"
Admin Panel -> Modules -> JavaScript Codes Management -> Title it "Thoát" - >
Vị trí "In all pages"
- Code:
$(document).ready(function() {
var x = document.getElementById('logout');
$(x).click(function(cLogout) {
var y = confirm("Bạn có muốn thoát chứ ?");
if (y == true) {
return true;
} else { cLogout.preventDefault(); }
});
});