<p>Current page URL: <span id="this_url">www.example.com</span>.</p>
<p>Current page title: <span id="this_title">mytitle</span>.</p>
$(document).ready(function () {
var href = $(location).attr('href');
var url = $(this).attr('title');
$('#this_title').html('<strong>' + href + '</strong>');
$('#this_url').html('<strong>' + url + '</strong>');
});
</script>
2 comentarios:
Gracias
GRACIAS
Publicar un comentario