title: Change in URL to trigger Event in GWT
body: <p>I am iterating through some data and generating parameterized URL links based on some conditions like this:</p>
  
  <pre><code>finishedHTML.append("&lt;a href=\"http://" + domain + "&amp;service=" + allEvents[eventCounter].EventService +"&amp;day="+ offSet+(-1 * i) +"\"&gt;&lt;img src=\"/info.jpg\" alt=\"Info\"/&gt;");
  </code></pre>
  
  <p>I had the beginning of my application checking for URL parameters when the page was loaded/refreshed, and take some action depending on if the parameters were there and what they were.</p>
  
  <p>However, I added a # to the beginning of the paramters, so the page wouldn't need to be refreshed, but now it's not triggering the function that checks the URL.</p>
  
  <p>My question is how can I trigger an event in GWT when a user clicks a link? Do I need to generate GWT controls, and link a click handler? Is it possible to setup an event that fires when the URL is changed???</p>
  
  <p><strong><em>UPDATE:</em></strong>
  Adam answered part of the initial question, but I can't get the querystring after "#". Is there a better way than the function below:</p>
  
  <pre><code>public static String getQueryString() 
   {
       return Window.Location.getQueryString();
   }
  </code></pre>
  
  <p>In other words, if I enter <code>example.com?service=1</code> I get service=1 as my querystring. If I enter <code>example.com#?service=1</code>, I get a null value for the querystring..</p>