function errorHandler( req ){ if (req.status == 404) { console.log("Page not found"); window.location.href = https://blog.longshi.org; window.refresh = after ; } }