MediaWiki:Zerospace EN.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
generateButton.innerHTML = '<input type="button" value="GO" onclick="get_alien();" />' + | generateButton.innerHTML = '<input type="button" value="GO" onclick="get_alien();" />' + | ||
'<script type="application/javascript">' + | |||
'function get_alien()' + | 'function get_alien()' + | ||
'{' + | '{' + | ||
' alert("I am an alert box!");' + | ' alert("I am an alert box!");' + | ||
'}'; | '}' + | ||
'</script>'; | |||
}()); | }()); |
Revision as of 13:27, 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 type="application/javascript">' +
'function get_alien()' +
'{' +
' alert("I am an alert box!");' +
'}' +
'</script>';
}());