User:Technical 13/SandBox/Flyout test.js

var FlyOutTest = mw.util.addPortletLink('p-personal', '//en.wikipedia.org/wiki/Main_page', '0', 'flyouttest', 'This is a flyout test', '', '#pt-userpage'); $( FlyOutTest ).click( function ( e ) { e.preventDefault; $('#flyouttest').html('0  Header      Preferences link  '); }); $('#flyouttest').html('0 ');