Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1071759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:45:22+00:00 2026-05-16T20:45:22+00:00

i need to call customFormElements.js js function after aspx page is loaded, after submit

  • 0

i need to call customFormElements.js js function after aspx page is loaded, after submit button is clicked. can i do this and if yes how?

window.onload option is not good…

i need to call this file after i press submit button becouse aspx ajax library clear my js file logic and i need to reload it again.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:45:23+00:00Added an answer on May 16, 2026 at 8:45 pm

    what i am getting is that you want to call a javascript function after your page is loaded for this i think its better to use setTimeout function:

    With JavaScript, it is possible to execute some code after a specified time-interval. This is called timing events.

    It’s very easy to time events in JavaScript. The two key methods that are used are:

    * setTimeout() - executes a code some time in the future
    * clearTimeout() - cancels the setTimeout()
    

    Note: The setTimeout() and clearTimeout() are both methods of the HTML DOM Window object.
    The setTimeout() Method
    Syntax
    var t=setTimeout(“javascript statement”,milliseconds);

    The setTimeout() method returns a value – In the statement above, the value is stored in a variable called t. If you want to cancel this setTimeout(), you can refer to it using the variable name.

    The first parameter of setTimeout() is a string that contains a JavaScript statement. This statement could be a statement like “alert(‘5 seconds!’)” or a call to a function, like “alertMsg()”.

    The second parameter indicates how many milliseconds from now you want to execute the first parameter.

    so just create a javascript function in which use setTimeout to call your desired javascript funciton as set time seconds for that

    and u can then call this javascript function on

    protected void Page_LoadComplete(object sender, EventArgs e)
    {
    //call javascript function which contains setTimeout();
    }
    

    you can see good example on below link:

    http://dotnetacademy.blogspot.com/2010/09/timer-in-javascript.html

    http://www.w3schools.com/js/js_timing.asp

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to call an external dll from c#. This is the header definition:
I need to call a const function from a non-const object. See example struct
I am using jQuery and JavaScript, I need to call the jQuery function inside
I need to call into a Win32 API to get a series of strings,
I need to call a method that accepts a stream argument. The method loads
I need to call a VBScript file (.vbs file extension) in my C# Windows
Say I need to call a javascript file in the <head> of an ERb
I have a VB6 COM component which I need to call from my .Net
I'm working on a JSP where I need to call methods on object that
When I attach functionality to an element do I need to call .widgetName('destroy') before

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.