How can I display the title of a page when clicking on a link in Mozilla or Internet Explorer?

To display the title of a page when clicking on a link in Mozilla or Internet Explorer, you can use JavaScript to capture the click event and then access the title attribute of the link element. You can then display this title in an alert box or any other desired way.

<script>
document.addEventListener('DOMContentLoaded', function() {
  var links = document.querySelectorAll('a');
  
  links.forEach(function(link) {
    link.addEventListener('click', function() {
      var title = this.getAttribute('title');
      alert(title);
    });
  });
});
</script>