Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>ILLUMINATI ^</title>
- <style type="text/css">
- a.button{
- padding: 8px 10px;
- background: #fff;
- color: #f44e42;
- text-align: center;
- font-size: 14px;
- text-decoration: none;
- text-transform: uppercase;
- border: 2px solid #f44e42;
- font-family: helvetica;
- }
- </style>
- <script type="text/javascript">
- var uri = "ws://echo.websocket.org";
- var websocket = new WebSocket(uri);
- websocket.onopen=function(){websocket.send("test");}
- websocket.onmessage=function(e){console.log(e.data); websocket.close();}
- websocket.onclose=function(){console.log("closed");}
- websocket.onerror=function(e){console.log(e.data);}
- </script>
- </head>
- <body>
- <center><a class="button" href="#">Click me mudafaka</a></center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement