Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving the Source Code

Status
Not open for further replies.

shultz

Programmer
Oct 28, 2001
42
HK
<HTML>
<HEAD>
<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
<TITLE></TITLE>
<SCRIPT LANGUAGE=&quot;javascript&quot;>
function viewSource()
{
window.location= &quot;view-source:}
</SCRIPT>
</HEAD>
<BODY onLoad='javascript:viewSource()'>

</BODY>
</HTML>

The above code gives me the source code of whatever url I want. But is it possible to save it onto my hard disk as a text file. I want to take data from some weather site and update it into my database.

Any ideas?

thanks a lot.
 
Before asking such an obvious question you can try doing this yourself, what do you think?
Of course you can save the source as .txt file - I just tried it in IE5 and Mozilla. And of course this should be done manually - javascript does not have an access to your local filesystem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top