Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 40163dfc7a
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (18 sloc) 0.682 kb
<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="link">
<handlers>
<handler event="click"><![CDATA[
//TODO: get these values from some appropriate attribute of link rather than hardcoding
var n = 'popup'; //name of window
var w = 640; //width
var h = 480; //height
var win = window.open(this.href, n, 'width=' + w + ',height=' + h + ',scrollbars=1,resizable=1');
if(!win) return; //quit if something failed (popup blocking, etc.)
// Cancel link default action:
try { event.preventDefault(); } //W3C
catch(e) { event.returnValue = false; } //IE
]]></handler>
</handlers>
</binding>
</bindings>
Jump to Line
Something went wrong with that request. Please try again.