Posted By

nvcesar on 10/01/10


Tagged

jstl


Versions (?)

Obtener una etiqueta de JSTL con java script


 / Published in: JavaScript
 

  1. <search:hit_link3/>
  2. <script type="text/javascript">
  3. variable = document.getElementsByTagName("a")[document.getElementsByTagName("a").length-1];
  4. hrefVar= variable.getAttribute("href");
  5. claveArt = hrefVar.replace("http://redalyc.uaemex.mx/redalyc/src/inicio/Resumen.jsp?iCve=", "", "").replace("&Id=2", "", "");
  6. document.write(claveArt);
  7. </script>

Report this snippet  

You need to login to post a comment.