Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- <!--
- function returnStatus(req, status) {
- //console.log(req);
- if(status == 200) {
- document.write("<h1>HTTP Error 418: I'm a teapot</h1>")
- }
- else {
- document.write("")
- }
- }
- function fetchStatus(address) {
- var client = new XMLHttpRequest();
- client.onreadystatechange = function() {
- // in case of network errors this might not give reliable results
- if(this.readyState == 4)
- returnStatus(this, this.status);
- }
- client.open("HEAD", address);
- client.send();
- }
- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement