legacy javascript
5 threads tagged with this topic
Threads tagged legacy javascript
- ✓
Why does an old script throw errors in a modern browser?
An old script usually throws errors in a modern browser for one of five reasons: it runs before its elements exist, needs a library that is not loaded, calls...
1reply - ✓
Why do old scripts use document.write, and what replaces it?
Old scripts use document.write() because it was the simplest way to put content into a page while it loaded: one line, no element to find. It is now...
1reply - ✓
How do you modernise an old cut-and-paste JavaScript script?
To modernise an old cut-and-paste JavaScript script, move it into its own file loaded with defer, replace inline onclick and onload attributes with...
1reply - ✓
Do old cut-and-paste scripts still work in current browsers?
Some run unchanged, many half work, and a few fail without any error on screen. Plain DOM code usually still runs. What breaks is code that relied on things...
2replies - ✓
Is it safe to paste a script from an old tutorial site?
Reading it is safe, pasting it unchanged is a manageable risk, and linking to the copy on the old site is the real danger. Copy the code into your own file...
2replies