Saturday, 15 May 2010

javascript - how to create static html page with form data? -



javascript - how to create static html page with form data? -

i have html form can come in info in form of text . 1 time submit button iis pressed, should alternative save html page. , should create static html page. best possible way this?

html form cade can thing this.

<form method="post"> <textarea name="name" rows="2" cols="20"> </textarea > <input type="submit" value="submit" /> </form>

check out library! https://github.com/eligrey/filesaver.js allows generate files client-side (an html file in case) , allow client download it, without interacting server

javascript html forms

No comments:

Post a Comment