Código
<html> <head> <script language = "javascript"> function buscarParametroGET( parametros, url){ var expReg = "[\\?&]"+parametros+"=([^&#38;#]*)"; var regEx = new RegExp ( expReg ); var resultado = regEx.exec( url ); if( resultado == null ){ return ""; }else{ return resultado[1]; } } </script> </head> <body> <div class = "art"> <a id = "link" href = "http://127.0.0.1/PoC/index.php?token=PoC"> <img alt = "" src = "http://profile.ak.fbcdn.net/hprofile-ak-snc4/186520_100001061925688_4930346_q.jpg" border = 0> </a> </div> <script language="javascript"> $("div.art > div.delete").click( function() { var sHREF = $("#link").attr("href"); alert(buscarParametroGET("token", sHREF)); }); </script> </body> </html>