title: Alternative to browser extension
body: <p>I am working on the requirement where I need to get the current URL accessed by user in browser.</p>
  
  <p>I have two approaches right now:</p>
  
  <ol>
  <li><p><strong>Read url from the browser specific database history:</strong> but problem with this approach is that it does not give the correct URL. It give the last accessed URL but not the URL on which user is currently working. </p></li>
  <li><p><strong>Other option is user extensions in browser itself</strong>, and capture the url on tab change event of browser. This approach works fine but here I need to ask user for adding extension to the browser.</p></li>
  </ol>
  
  <p>I want to know some other approach if any?
  Can I achieve the same by running some program of javascript at specific interval of time to capture the URL? </p>
  
  <p>Platfrom I am working on is : RedHat (RHEL)
  Browser: firefox and Chrome.</p>
  
  <p>Any suggestion will be appreciated.</p>