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 |
||
(One intermediate revision by the same user not shown) | |||
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('You are not logged in. Please log in to continue') | |||
} | |||
} | |||
function poke() { | function poke() { | ||
var api = new mw.Api(); | var api = new mw.Api(); | ||
Line 16: | Line 25: | ||
} | } | ||
</script> | </script> | ||
<input type="button" onclick=" | <input type="button" onclick="prod()" /> | ||
</includeonly> | </includeonly> |