Jump to content

User:XcruftX/monobook.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
XcruftX (talk | contribs)
No edit summary
XcruftX (talk | contribs)
No edit summary
Line 1: Line 1:
addOnloadHook(add_links);
addPortletLink('p-cactions', "javascrip:foo()", "foo");

function add_links() {
addPortletLink('p-cactions', 'javascrip:foo()', 'foo');
}


function foo() {
function foo() {

Revision as of 22:20, 15 June 2008

addOnloadHook(add_links);

function add_links() {
  addPortletLink('p-cactions', 'javascrip:foo()', 'foo');
}

function foo() {
  alert("foo");
}

alert("please work!");