Open an overlay while nextpage is loading
<p>Trying to open an overlay (with JqueryTools) with loading message before the page changes, can't find how to use the href attribute of my trigger (i'm using a class .btn_menu for multiple button)</p>

<p>HTML</p>

<pre><code>&lt;div class='btn_menu'&gt;
   &lt;a class='modalInput' rel='#loading' href="a_mailling.php"&gt;&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>JS</p>

<pre><code>$(function() {

    var triggers = $(".btn_menu a").overlay({  
    expose: { 
        color: '#000', 
        loadSpeed: 200, 
        opacity: 0.9 
    }, 

    closeOnClick: false,
    onBeforeLoad: function(){ //right ?
    window.location = //need to get href attribute of clicked trigger

    }


    });

    var buttons = $("#loading button").click(function(e) {
    var yes = buttons.index(this) === 0; 
    });

});
</code></pre>
