So yeah i need help with that code is here
So i want it to clear the screen when i call the function myInventory() and newWorld() with the Back buttonCode:<script> function myInventory() { document.write('<pre>'); document.writeln("A warm blanket"); document.writeln('<button onClick="newWorld()">Back</button>'); } function newWorld() { document.write('<pre>'); document.writeln("Hello and welcome to World of My Core!"); document.writeln("What would you like to do?"); { document.writeln('<button onClick="myInventory()">Inventory</button>'); } } </script>



Reply With Quote


Bookmarks