so im using a notepad to use html and i wanted to know how to make a button that will open a file i want.
Welcome to the forums, @groommic000
How far have you got with this?
choose your game
<a href="https://simple-education.xyz/books.html?notebook=kirka" target="popup" onclick="window.open('https://simple-education.xyz/books.html?notebook=kirka','name','width=600,height=400')">gameweb</a> <hr /> <body style="background-color:grey;"> <a href="https://jcw87.github.io/c2-sans-fight/index.html" target="popup" onclick="window.open('https://jcw87.github.io/c2-sans-fight/index.html','name','width=600,height=400')">sans game window</a> <hr /> <a href="https://www.youtube.com/" target="popup" onclick="window.open('https://www.youtube.com/','name','width=600,height=400')">yt</a>
this is what i got so far as u an see the leaks opens to where i want it to go but i also want to add a button that will open a file i want to use this to open a proxy file but all i want to know is how to make it open a file
idk if u reply or not but it did not show up i did get a notifi but did not show up just wanted to tell u
You probably received a notification of a reply but it was a spam post and has been deleted.
If you want to make your
<a> link look like a button, you need to apply styles to the
<a> element itself.
<body> tag belongs at the beginning, but without the background-color applied.
This article might help some.
but how do u make it to where when u click the button it will open a file ik the other way
<form action="/action_page.php"> <label for="myfile">Select a file:</label> <input type="file" id="myfile" name="myfile"><br><br> <input type="submit"> </form>
but for some reason it won’t work it says file move or deleted
A form won’t do anything without some server-side scripting.
What kind of file are you trying to open?
You cannot open a file from your harddisk. You can choose a file from your harddisk, which will then be send to a server for example. But you cannot execute this file or do other things with it.