Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (34 sloc) 949 Bytes
<!DOCTYPE html>
<html lang="en">
<title>nowjs test</title>
<script type="text/javascript" src=""></script>
<script src="/nowjs/now.js"></script>
now.receiveMessage = function(name, message){
$("#messages").append("<br>" + name + ": " + message);
}); = prompt("What's your name?", "");
<a href="#" class="change selected">room 1</a> -
<a href="#" class="change">room 2</a> -
<a href="#" class="change">room 3</a>
<div id="messages"><br>You're in room 1</div>
<input type="text" id="text-input">
<input type="button" value="Send" id="send-button">
Jump to Line
Something went wrong with that request. Please try again.