summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/sourcemaps2/main.js
blob: 23fb2fabf17c017e52e072ce8cf5015e2de0c64d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var message = document.getElementById('message');

function logMessage() {
  console.log('message is: ' + message.value);
}

message.addEventListener('focus', function() {
  message.value = '';
}, false);

var logMessageButton = document.getElementById('log-message');

logMessageButton.addEventListener('click', function() {
  logMessage();
}, false);