/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<p>Current page URL: <span id="this_url">www.example.com</span>.</p>
<p>Current page title: <span id="this_title">mytitle</span>.</p>
<script type="text/javascript">
jQuery(document).ready(function () {
var href = jQuery(location).attr('href');
var url = jQuery(this).attr('title');
jQuery('#this_title').html('<strong>' + href + '</strong>');
jQuery('#this_url').html('<strong>' + url + '</strong>');
});
</script>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                