By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,948 Members | 1,559 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,948 IT Pros & Developers. It's quick & easy.

Syntax for calling js function at onload event on web page.

P: 1
I use a development tool called IronSpeed. It creates a web environment with all kinds of web pages to address database interaction etc. I am trying to deal with some look-and-feel issues that apparently require me to use a javascript function to change the CssClass of a TabContainer control. The function is defined as noted below. I need to call the function at page startup, but I am not certain what syntax to use. Any advise?

Thanks in advance.

Expand|Select|Wrap|Line Numbers
  1. <asp:Content id="PageSection" ContentPlaceHolderID="PageContent" Runat="server">
  2.     <a id="StartOfPageContent"></a>
  3.     <script type="text/javascript"  language="javascript">  
  4.     function OverrideTabContainerClass()
  5.     {
  6.         var TabID;
  7.         TabID = document.getElementById("ctl00_PageContent_Table_AP_RequestTabContainer");
  8.         TabId.CssClass="tableContainerTab";
  9.     }
  10.     </script>
  11.     <GEN:UPDATEPANEL NAME="UpdatePanel1">
  12.  
  13. ...
  14.  
Oct 19 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.