Originally Posted by Asher01
When you are on the main page, it doesn't continue loading.
However if you use the input field and hit 'Encode' or 'Decode' it then brings you to a page that continues loading until you hit stop.
It's the usual problem of trying to use document.write in a closed document, which wipes-out all previous content including the script.
The crudest fix for what you have in place, is to call
prior to the first call to document.write. Then after the last document.write, call
That will stop the loading symbol but it's still a poor show.
It would be slightly better for the buttons to load separate pages that run the relevant function as they load.
There are more sophisticated solutions beyond the scope of this response.