JavaScript is a method that recognizes and redizes web keywords.
The example in this article describes how JavaScript can identify and trace the Web keywords. We will share this with you for your reference. The details are as follows:
Here, we will demonstrate how JavaScript can intelligently identify web keywords and display them in red. I believe this effect is no stranger to everyone. It is much better to use JavaScript to add red keywords than program control output, some functions must be handed over to the customer's browser, which reduces the pressure on the server.
The running effect is as follows:
The Online Demo address is as follows:
Http://demo.jb51.net/js/2015/js-keyword-show-red-color-codes/
The Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I hope this article will help you design JavaScript programs.