title: Get attribute value from HTML element in WebBrowser
body: <p>I need the number in brackets, in this case "14" so that I can send it to a JavaScript function on the page to submit or alternatively is there a way to 'click' the button "Current week"?</p>
  
  <pre><code>&lt;form id="timetablesForm" action="timetablesController.jsp" method="post"&gt;
      &lt;p&gt;
          &lt;input type="button" name="Current week" value="Current week" onclick="javascript:void+displayTimetable('14')" /&gt;
          &lt;input type="button" name="Next week" value="Next week" onclick="javascript:void+displayTimetable('15')" /&gt;
          &lt;input type="button" name="Current semester" value="Semester 1" onclick="javascript:void displayTimetable('7;8;9;10;11;12;13;14;15;16;17;21')" /&gt;
      &lt;/p&gt;
  
  function displayTimetable(selectdweeks)
  </code></pre>
  
  <p>I'm working in Windows Phone so the <code>WebBrowser.Document</code> isn't available. I've used the script below to set a value in a different form:</p>
  
  <pre><code>webBrowser1.InvokeScript("eval", "document.getElementById('loginform1').user.value = 'username';");
  </code></pre>
  
  <p>How do I <strong>get</strong> a value from the HTML page? What other function can I call with <code>InvokeScript</code>? Appreciate it if you can point me at a list of functions.</p>