function showMessage1(text) {
alert( text );
}
function showMessage2(text) {
alert( text );
}
function showMessage3(text) {
alert( text );
}
InjectFunction = function(PageScriptSpace, func) {
PageScriptSpace.innerHTML += func;
}
PageScriptSpace = document.createElement('script');
InjectFunction(PageScriptSpace, showMessage1);
InjectFunction(PageScriptSpace, showMessage2);
InjectFunction(PageScriptSpace, showMessage3);
document.querySelector('head').appendChild(PageScriptSpace);
function showMessage(text) {
alert( text );
}
InjectFunction = function(PageScriptSpace, func) {
PageScriptSpace.innerHTML += func;
}
PageScriptSpace = document.createElement('script');
InjectFunction(PageScriptSpace, showMessage);
document.querySelector('head').appendChild(PageScriptSpace);
showMessage('123')