Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (18 sloc) 0.682 kb
f67e76c8 » Jason Johnston
2004-03-08 Initial revision
1 <?xml version="1.0"?>
2 <bindings xmlns="http://www.mozilla.org/xbl">
3 <binding id="link">
4 <handlers>
5 <handler event="click"><![CDATA[
6 //TODO: get these values from some appropriate attribute of link rather than hardcoding
7 var n = 'popup'; //name of window
8 var w = 640; //width
9 var h = 480; //height
10
11 var win = window.open(this.href, n, 'width=' + w + ',height=' + h + ',scrollbars=1,resizable=1');
12 if(!win) return; //quit if something failed (popup blocking, etc.)
13
14 // Cancel link default action:
15 try { event.preventDefault(); } //W3C
16 catch(e) { event.returnValue = false; } //IE
17 ]]></handler>
18 </handlers>
19 </binding>
20 </bindings>
Something went wrong with that request. Please try again.