Changes

Jump to navigation Jump to search
no edit summary
Line 4: Line 4:  
var button = new OO.ui.ButtonWidget( { label: 'Click me!' } );
 
var button = new OO.ui.ButtonWidget( { label: 'Click me!' } );
 
button.on( 'click', function () {
 
button.on( 'click', function () {
alert( '<span>You clicked the button defined <a href="https://wiki.personaldata.io/w/index.php?title=User:Podehaye/button.js">here</a>!</span>' );
+
alert( 'You clicked the button defined https://wiki.personaldata.io/w/index.php?title=User:Podehaye/button.js' );
 
} );
 
} );
 
$( '#mw-content-text' ).prepend( button.$element );
 
$( '#mw-content-text' ).prepend( button.$element );
 
} );
 
} );
 
} );
 
} );

Navigation menu