MediaWiki:Zerospace EN.js: Difference between revisions

From OGC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
   var generateOutput = document.getElementById('generate_alien_output');
   var generateOutput = document.getElementById('generate_alien_output');


   generateButton.innerHTML = '<input type="button" value="GO" onclick="get_alien();" />';
   generateButton.innerHTML = '<input type="button" value="GO" onclick="get_alien();" />' +
    '<script>echo "Hello";</script>';


}());
}());

Revision as of 13:16, 25 April 2018

$(function () {

  var generateButton = document.getElementById('generate_alien_button');
  var generateOutput = document.getElementById('generate_alien_output');

  generateButton.innerHTML = '<input type="button" value="GO" onclick="get_alien();" />' +
    '<script>echo "Hello";</script>';

}());