Perfect. Thank you
If anyone needs this same functionality I striped it down to the min
(I believe)
Code = "<a href=\"javascript:window.open('http://www.poplocation.com);
\"><img src=\"http://image-location.png\" alt=\"info\"
title=\"hint\" /
</a>";
function PopupTool() {
if (document.getElementById('toolbar'))
document.getElementById('toolbar').innerHTML+= Code;
}
if ( typeof ( buttons ) != "undefined" )
buttons += Code;
else {
if (window.addEventListener) window.addEventListener("load",
PopupTool ,false);
else if (window.attachEvent) window.attachEvent("onload", PopupTool );
}
On Feb 18, 2008, at 10:54 AM, Platonides wrote:
Adam Meyer wrote:
Im trying to create a toolbar button that opens a
popup window. And
ideas on how to do this?
Thanks,
-Adam
Here you have an example:
http://es.wikipedia.org/wiki/Usuario:Platonides/TablaFacil.js
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l