Skip to Content
Oracle® Web Application Programming for PL/SQL® Developers
book

Oracle® Web Application Programming for PL/SQL® Developers

by Susan Boardman, Melanie Caffrey, Solomon Morse, Benjamin Rosenzweig
December 2002
Intermediate to advanced
745 pages
17h 26m
English
Pearson
Content preview from Oracle® Web Application Programming for PL/SQL® Developers

Unit 7.1. Embedding JavaScript in HTML

A First Example

JavaScript can be embedded within HTML. The <SCRIPT> tag allows you to do this.

FOR EXAMPLE

<HTML> 
<HEAD> 
<SCRIPT language="JavaScript">
							<!--Begin hiding content from old browsers.
							alert("This is an Alert!");
							document.write("I'm being written by JavaScript!");
							//End hiding here-->
							</SCRIPT> 
</HEAD> 
<BODY> 
<H2>A First JavaScript Script</H2> 
<P>This is text within paragraph tags.</P> 
</BODY> 
</HTML> 

The example above is a very simple JavaScript script embedded within an HTML page. It does two things:

  1. It creates a pop-up message, called an alert, with the text “This is an Alert!” (Figure ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java™ Oracle® Database Development

Java™ Oracle® Database Development

David J. Gallardo
The Java EE 6 Tutorial: Basic Concepts, Fourth Edition

The Java EE 6 Tutorial: Basic Concepts, Fourth Edition

Eric Jendrock, Ian Evans, Devika Gollapudi, Kim Haase, Chinmayee Srivathsa
Oracle® PL/SQL® Interactive Workbook, Second Edition

Oracle® PL/SQL® Interactive Workbook, Second Edition

Benjamin Rosenzweig, Elena Silvestrova

Publisher Resources

ISBN: 0130477311Purchase book