title: call javascript within vb code load function
body: <p>I’m trying to call Java script code from within the page_load function code, but I don’t know how!!</p>
  
  <p>I’ve added js file to the solution
  And put in the page </p>
  
  <pre><code>&lt;script type="text/javascript" src="js/hide.js"&gt;
  // to hide
  getElementById("GradesH3").style.display="none";
  getElementById("GradesUL").style.display="none";
  &lt;/script&gt;
  </code></pre>
  
  <p>Now the code where I want to call it is :</p>
  
  <pre><code>Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
      If Session("UsrRole") = "Rector" Then
  
      End If
  </code></pre>