Solo Entrepreneur
Achieving the Dream: The Freedom of The Solopreneur Lifestyle
25 Surefire Ways to Capture More Clients, Get More Done In Less Time, and Make More Money -- in 90 Days or Less
Get Your Free Ebook Now!
First name:
Primary email:

You'll also get our popular weekly ezine with the latest articles and teleclasses for solo entrepreneurs (See recent archives)
Your personal information will NEVER be shared. Unsubscribe anytime.
Privacy Policy

Download and Redirect with One Click



By William and Mari Bontrager
Print | Email | Comments | More by William and Mari Bontrager

| More


More Articles > Internet Marketing > Website Design



Would you like to provide a download link for your site visitors that begins the download and then sends the browser to a different web page?

If you've never thought about doing such a thing, here are some one-click ideas:

  1. Provide a download and a web page of installation instructions.

  2. Present a web page with information about a pro version of the the free download.

  3. Provide a download of a PDF document, then a web page with an opportunity to subscribe for more of the same kind of information. Paul Myers is providing a "Resources for Starting and Running Your Online Business" download in this way. (Paul provided the idea for this one-click method.)

    Click http://tbrx.com/directory/download.html to see it in action (or http://willmaster.com/artmyerspdf for more info about the PDF document, first).

It is similar to clicking on a link that takes the visitor to a page at another URL, a normal link. The difference is that a download starts between the time the link is clicked and the time the visitor is taken to a different web page.

How this one-click method works:

  1. The download link has two attributes, an "href" and an "onclick."

    The "href" contains the URL of the downloadable file.

    The "onclick" contains that name of a JavaScript function that sets up a delayed redirect to a different web page URL.

  2. When the download link is clicked, the delayed redirect is set up and the download commences. At the end of the delay period, the browser is redirected -- whether or not the download has completed.

Here is the JavaScript:




The destination web page URL and the number of seconds to delay can both be customized. In the above JavaScript, the URL is
http://FlowTo.info/ and the delay is 4 seconds (specified as 4000 milliseconds).

Notice that the function returns a value of true. This allows the download to commence even with a redirect delay having been set.

Here is the HTML link:



   href="
http://willmaster.com/test.zip "
   onclick="SetUpRedirect()">
Click to Download


If using the JavaScript and HTML exactly as provided above, the redirect to http://FlowTo.info/ is set up when the link is clicked. The download of http://willmaster.com/test.zip then commences. Four seconds after the link was clicked, the browser is redirected to http://flowto.info/

The JavaScript can be anywhere on the page, above or below the link or in the HEAD area.

Now, you can provide your visitors with a download *and* open a web page with more information.


About the expert(s):
William and Mari Bontrager
Bontrager Connection, LLC
3213 West Main #301
Rapid City, SD 57702
U.S.A.
This article was first published in the free, weekly
Possibilites Ezine .

© Copyright 2005, Bontrager Connection, LLC.



Comments
No comments yet
*Name:
Email:
For verification only. Your email will not be displayed.
Notify me about new comments on this page
*Text:
Security Image:

Visual CAPTCHA


 

Powered by Scriptsmill Comments Script
Home/Solo Entrepreneur Blog | Entrepreneur Articles | Teleclasses | Business Ebooks | Templates | Resources | Site Map
Meet our Solo-E Certified Entrepreneur Experts | Become a Solo-E Certified Entrepreneur Expert | Expert Login
Solo-E.com
Copyright © Solo-Entrepreneur.com, Inc. All rights reserved.
Privacy Policy | Terms & Conditions |