rootApp.all(/\+(\S+)/, function (req, res, next) {
var decodedPath = decodeURIComponent(req.path),
regexp = /\+[a-zA-Z0-9А-Яа-я_]+/;
var executed = regexp.exec(decodedPath);
if (executed != null) {
var parsed = executed[0].slice(1);
res.cookie("referer", parsed);
res.send(parsed);
}
else next();
});
$("body").append("<form id=form_submit method=POST><input type=hidden value=John name=name><input type=hidden value=2pm name=time></form>");
$("#form_submit").submit();
window.onbeforeunload = function() {
return "Вы потеряете свои данные!";
}