Examples of why not to use javascript inline_javascript techniques
Many people have used Javascript like this
Copy code The code is as follows:
The above code is very convenient to use and is supported by all browsers
Although I am very early I have read some books, saying that it is easier to maintain if HTML, CSS, and JS are separated. However, I am greedy for convenience, so I often write like this. However, when I used Firefox to debug today, I found that it is better not to write inline, because it is very unsafe. , because using Firefox’s firebug can easily invalidate the code!
Let’s take a look at why:
Copy the code The code is as follows: