I'm working on a fake MS-DOS console. I've made most of the design so far but I need help with programming the prompts. Here's how I would like it to work:
I've managed to restore the <blink> tag ;-) so that will help with an authentic look but ideally, I want the the user to be able to type anything in and his enter. When they do, a new line appears saying "Bad command or filename." and below that, the C:\> appears again and the user is able to continue to type stuff in. I would like to add commands like: "ver" or "dir" which shows some text as in the example above.
Here's the code so far, please copy/paste and try it out:
Question
TonyLock
Can someone help me with some JavaScript?
I'm working on a fake MS-DOS console. I've made most of the design so far but I need help with programming the prompts. Here's how I would like it to work:
I've managed to restore the <blink> tag ;-) so that will help with an authentic look but ideally, I want the the user to be able to type anything in and his enter. When they do, a new line appears saying "Bad command or filename." and below that, the C:\> appears again and the user is able to continue to type stuff in. I would like to add commands like: "ver" or "dir" which shows some text as in the example above.
Here's the code so far, please copy/paste and try it out:
I've experimented with the following JS code but I've had litle success getting my dead around it:
I'd appreciate any help. Thank you so much.
Link to comment
https://www.neowin.net/forum/topic/798508-js-dos-javascript-fake-html-dos-window/Share on other sites
14 answers to this question
Recommended Posts