| 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
|---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 4 | <head> |
|---|
| 5 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js"></script> |
|---|
| 6 | <script type="text/javascript"> |
|---|
| 7 | <!-- |
|---|
| 8 | function init() { |
|---|
| 9 | $("#submit-button").bind("click", function(e) { |
|---|
| 10 | $("#messages").append("<p>timestamp is " + e.timeStamp + "</p>"); |
|---|
| 11 | return false; |
|---|
| 12 | }); |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | $(init); |
|---|
| 16 | // --> |
|---|
| 17 | </script> |
|---|
| 18 | </head> |
|---|
| 19 | <body> |
|---|
| 20 | <input type='submit' id='submit-button' value='click me or push enter !'/> |
|---|
| 21 | <div id='messages'> |
|---|
| 22 | <h4>Messages</h1> |
|---|
| 23 | </div> |
|---|
| 24 | </body> |
|---|
| 25 | </html> |
|---|