User:Rocky/bluecloud.js

if (wgPageName == "Special:WebChat") { window.onbeforeunload = function (evt) { var message = "Are you sure you want to leave?"; if (typeof evt == "undefined") { evt = window.event; } if (evt) { evt.returnValue = message; } return message; } }