My homepage is a simple HTML document with a table and links I use frequently.
I want to code the page so that I can add rows and columns to the table and then add the links without having to type in the HTML.
I use Firefox so I read up on javascript and coded two functions to add rows and add columns.
How can I add an input button that will save the new altered page to a path in my hard drive?
I suspect that you will be disappointed. The security holes that would be present if Javascript could save files to a local hard drive would be horrendous.
Something like this would be best implemented on a proper webserver with some sort of back-end database. Perhaps there are blog-like sites where you could set up a wiki of your very own for free?
I know that TiddlyWiki can be saved to your hard drive and as you change the wiki (it’s a single HTML file and it uses javascript) there’s a ‘save changes’ button and you can save the file with changes, it even saves a backup for you.
I can’t figure out how they do it but it is possible.
You can write to your local drive from within Javascript so long as the request comes from the same machine that the page is loaded on. Create a System.Filescripting object and try it. You should be able to load the page by clicking on it, and having the page write to your drive.
Now, if the page is hosted on a web server, and the request is coming from another machine, you’re out of luck.