Widget:Sandbox3: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<script type="text/javascript">
<script type="text/javascript">
function prod(){
try{
poke()
alert('I guess you do exist')
}
catch(e){
alert('An error has occurred: '+e.message)
}
}
function poke() {
function poke() {
var api = new mw.Api();
var api = new mw.Api();
Line 16: Line 25:
}
}
</script>
</script>
<input type="button" onclick="poke()" />
<input type="button" onclick="prod()" />
</includeonly>
</includeonly>

Revision as of 16:00, 22 October 2012