The NoScript in JavaScript

Source: Internet
Author: User

Introduction:

In the days of daily Hot browser, a big browser almost all want to dominate, fight for a life-and-death, so now the major browsers support JavaScript scripting language, but in children's shoes, we assume that, in case a user out of security, the browser's JavaScript script support, The option off, which led us to write some effects, statistics, geolocation, Access, login registration verification is not meaningless anymore, so we introduced today our almost forgotten <noscript> tags

Many people feel that, but as a want to learn JS I think that any knowledge is important, not to say we look at the code

1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 <Head>4   <MetaCharSet= "UTF-8">5   <title>Document</title>6 </Head>7 8 <Body>9 Ten   <NoScript> One      A     <P>This page requires browser-enabled JavaScript</P> -   </NoScript> -  the <Script> -   functionji () { -  - Alert ("<\/script>")//Here The backslash is the escape character, because the browser parsing process, encounters </script>will stop parsing script without escaping character browser will error; - ji (); + </Script>

is not very simple, just a label can judge the user JavaScript script status, interested in the small partners can try their own, do not forget to put the browser's script state to close = =

END

every knowledge point has the truth of existence, do not ignore which, fancy which, after the development of the future, the knowledge that you neglect will become your biggest obstacle;

The NoScript in JavaScript

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.