Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (31 sloc) 773 Bytes
var txt = "";
function message() {
try {
adddlert("Welcome guest!");
catch(err) {
txt = "There was an error on this page.\n\n";
txt += "Click OK to continue viewing this page,\n";
txt += "or Cancel to return to the home page.\n\n";
if(!confirm(txt)) {
document.location.href = "";
<input type="button" value="View message" onclick="message()" />
<!--Graceful degradation example text fix-->
<p class="scriptwarning">
There was an error on this page.
Continue viewing this page,
or Click <a href="">here</a> to return to the home page.