window.onbeforeunload = function () { window.returnValue = document.getElementById("hidAttachedCount").value; if (window.returnValue == "3") { CausesValidation = "false"; } else { return "Did you save your stuff?"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)