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 6341699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:05:24+00:00 2026-05-24T20:05:24+00:00

For example; They are my links, HomePage – Users When I click homepage load

  • 0

For example;
They are my links, HomePage – Users

When I click homepage load js code. How I can interrupt when click Users this running code and start again.

Thanks for answers.

  • 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-24T20:05:27+00:00Added an answer on May 24, 2026 at 8:05 pm

    First of all, your individual Javascript functions should only be running for split seconds. There should be no single long-running function that you need to actually interrupt. If there is, you need to design it so it is interruptable. Like:

    function foo() {
        while (/* something */) {
            if (stopFlag) {
                return;
            }
    
            // do something
        }
    }
    

    When you want to interrupt the function, you set the global stopFlag to true and the function will exit soonish. That’s rarely a necessary design pattern in the browser though (and only possible to a limited extend in the first place due to the single-threadedness of JS).

    The best answer I can give to this vague and broad question of yours: design your Javascript in a way that you don’t have this problem in the first place.

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

Sidebar

Related Questions

i have this bit of code: <?php $file = file_get_contents('http://example.com'); preg_match_all(/<a href=(.*?links.*?)>.*?<\/a>/i, $file, $a);
I've convinced myself that they can't. Take for example: 4 4 + 4 /
How can I allow visitors to use this link (www.example.com/news?id=34) in order to see
I have pagination links set-up like this: http://localhost/?page=2 http://localhost/?page=3 They are wrapped in Anchor
The best example I saw so far is the http://www.instapaper.com/ . They can get
I want to handle links like this: http://example.com/test.aspx?userid=tras&server=bum I looked here , and they
In VBA Help for the RefersTo Property, they give this example of listing all
For example, files, in Python, are iterable - they iterate over the lines in
I'm looking at the following API: http://wiki.github.com/soundcloud/api/oembed-api The example they give is Call: http://soundcloud.com/oembed?url=http%3A//soundcloud.com/forss/flickermood&format=json
In the BubbleLevel example from apple they implement an +initialize method. They say: +initialize

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.