Using HTML To Download File

R

Richard In Va.

I have a local html document (webpage on my desktop) that when I open or
refresh it, I would like it to Download a file from the internet.

Can this be done using std HTML or similar? Or can the HTML page invoke
wget to fetch the file... anybody know?

Thanks,

Richard in VA.
+++++++++++
 
T

Trevor Lawrence

Richard In Va. said:
I have a local html document (webpage on my desktop) that when I open or
refresh it, I would like it to Download a file from the internet.

Can this be done using std HTML or similar? Or can the HTML page invoke
wget to fetch the file... anybody know?

I am not quite sure about what you want

On your local site, you can *open* a .web page just by using an absolute
address, e.g
<a href="http://ratec.actbus.net/index.html">Click to go to site</a>

Do you want to locate to that page?
If so, use a refresh in the <head> section, e.g.
<meta http-equiv="refresh" content="3;
url=http://ratec.actbus.net/index.html">
The "3" is the delay in seconds. To load immediately, use 0.

You can also use a script which can be placed in the <body>
<script type="text/javascript">
location.hef="http://ratec.actbus.net/index.html"
</script>
This will execute immediately

If you want to actually get the code for the page, once you have opened it,
View|Source will open the page in your editor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top