Introduction to Java Script in the first lesson of Java script

Source: Internet
Author: User

<! DOCTYPE html>
<meta CharSet= "utf-8" >
<title> </title>
<body> < three ways to!--JS--
<script Type= 'text/javascript' >
<!--
Alert (' The Wheat College JS course begins ');
-
</script>
<script src= "test1.js" type= "text/javascript" charset= "utf-8" > </script>
<noscript>
Your browser does not support JavaScript, please change the view
</noscript>
<a href= "javascript:confirm (' Are you sure you want to enroll for a JavaScript course?") ') ' > registration </a>
<p onclick= "javascript:alert (' Hello World ');" >clickme</p>
</body>

Text2.html

<! DOCTYPE html>
<meta charset= "Utf-8" >
<title></title>
<body>
<script type= "Text/javascript" >
document.write (' AAA ');
document.write (' <br/> ');
document.write (' BBB ');
document.write (' CCC ');
document.write (' ddd ');
document.write (' <br/> ');
document.write (' hello\
World ');
(\) Reflection Line
Street Notes
/*
Multi-line comments
*/
/*
Writing content to a document through document.write ()
Writing content to the console via Console.log ()
Errors in JavaScript
1. Debugging via the console
2. Debug via Alert ()
*/
Console.log (' Write content to console ');
alert (test);
Alert (' This is test ');
</script>
</body>

This article from "11021497" blog, declined reprint!

Introduction to Java Script in the first lesson of Java script

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.