script scr='' - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:script

Introduction

Loading an External Scripting Library

Contents of the simple.js Script File

document.write("This is from the external script");

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <script src="simple.js"></script> 
   </head> 
   <body> 
      <p>
          I like 
         <code id="myId">HTML</code>
          and CSS. <!--   www .j  a  v  a2  s . c  o  m-->
      </p> 
      <a href="http://java2s.com">Visit java2s.com</a> 
      <a href="page2.html">Page 2</a>  
   </body>
</html>

Related Tutorials