I am trying to create a program/web app that I would use regularly as a way to learn how to code.
I am trying to make just a web-app version of this with HTML/CSS/JavaScript if possible and have searched for ways to do this, but I must not know the correct terminology, as everything I find either involves at least 2 other programming languages or seems far more complicated than what I want to accomplish.
I want to be able to type text into various labeled input boxes, hit "submit" and have that text be copied and minimally formatted onto either another web page or a txt file that I can download, which also gives me the word count of that text.
Basically, if I have an input box Labeled "Sentence One" and I type in "Hello World, this is a sentence.", I want to then be able to hit some sort of "Submit" button that will take that text and the information about the label, and create a text file, html page, google sheet, etc--just SOMETHING that can store that text, format it, and be available for export/download at a given time.
The above would ideally result in a page or file that shows "Sentence One: Hello World, this is a sentence." and would show "Word Count = 6" somewhere near the bottom of the page.
The word count should be simple enough, but the whole opening/creating a new page/file/whatever, is the part I am stuck at.
I would really even appreciate just the proper terminology or links to articles about what I am trying to do so I can understand the process, as currently it seems far more complex than it should.
As far as I am aware, you cannot do that on the frontend with vanilla javascript.
You would have to use a backend server. I know that nodeJS can interact with the file system, so maybe you could do that.
There are many options for you to make that web app. First of all you would need both front and back end technologies.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.