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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:06:29+00:00 2026-05-26T06:06:29+00:00

Here is our code: <script type=text/javascript> $(document).ready(function() { $(‘a#installfc’).click(function(e){ e.preventDefault(); window.open(http://www.site.com/ads/tr.php?src=source,’_parent’); $(this).html(Opening Download Link..

  • 0

Here is our code:

<script type="text/javascript">
$(document).ready(function() {
    $('a#installfc').click(function(e){
        e.preventDefault();
        window.open("http://www.site.com/ads/tr.php?src=source",'_parent');    
        $(this).html("Opening Download Link.. Please wait").delay(3000).html("Please run the installer after downloading");
    });
});
</script>

Basically, we want the message to display, and then 3 seconds later it changes to another message.

What am I doing wrong?

~ jquery noob.

  • 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-26T06:06:30+00:00Added an answer on May 26, 2026 at 6:06 am

    Ive only really seen delay used when doing jQuery animation effects. Its possible there is a way to use that method to do what you want, but you could just as easily fall back to standard javascript setTimeout:

    Live example: http://jsfiddle.net/TMgPD/

    $('a#installfc').click(function(e){
            e.preventDefault();
            window.open("http://www.site.com/ads/tr.php?src=source");    
            $this = $(this);
            $this.html("Opening Download Link.. Please wait")
            setTimeout(function(){
                        $this.html("Please run the installer after downloading")
            },3000);
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got this code on here recently <script type='text/javascript'> $('#discountselection').hide(); $('#No').click(function(){ $('#discountselection').hide(); }); $('#Yes').click(function(){
my_window.document.write(' <script type=text/javascript> function redirect(linkid) { opener.location.href=linkid; window.close(); } </script> <h1>Hello</h1> <p>Thank you.If you
Here is my code, I don't understand what's wrong. <script type=text/jquery> function gettotalAdult() {
We use Incredibuild here to compile our code in a distributed fashion. I was
I've got some code here that works great on IPv4 machines, but on our
I have been struggling with this jQuery Validation Plugin. Here is the code: <script
Our script uses dom to parse all the a tags from a document then
Here's our scenario: We've created a sharepoint 2007 calendar on our intranet site We
So here is our problem: We have a small team of developers with their
We'll soon have some high school kids here in our company for some training

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.