Skip to content

Tag: html

(Javascript) oninput with numbercheck

I’m trying to make a simple inventory systems. But I’m having problem with my oninput event. I want to make TOTAL GOODS to be “Please input number in GOODS IN ” whenever every non number value inserted into GOODS IN. But it seems I can’t make it so. Answer Just add type = “…

NWjs version of Bad Time Simulator not playing bgm

I found a game online, or which the source code is here, and I wanted to mod it. However, after modding it online on Github for a while, I was being driven crazy, by the github pages load time and my browser cache, which seemed to defy all attempts at deletion. Finally, I attempted to use NWjs to load it.

How can I add accumulative Margin on button click?

I am trying to add a text slider, where basically a very long text box extends out of the view, and when a button is pressed margin is added so more text can be read. I do not know how to make a button that adds margin without exponentially increasing it each time. After a few clicks, this starts to

How to to save txt file on server in HTML/JS?

I’m making signup form stuff and I want to save data to server and I got this code : But its download file and I’m wondering how to save/download it to server. Answer You can’t. The code you have found is for triggering a download and saving a file to the browser’s download directory (…

Copy more than one div to clipboard and adding characters

I am using the following script to copy a div to clipboard. But I am trying to copy multiple divs (DivA + DivB) with the same button, while adding some quotes and brackets around each div. I saw some answers (like this one, and this), but I can’t seem to be able to implement them to the current script. …