Skip to Main Content
Adobe® Dreamweaver® CS4 Bible
book

Adobe® Dreamweaver® CS4 Bible

by Joseph Lowery
March 2009
Beginner to intermediate content levelBeginner to intermediate
1321 pages
46h 24m
English
Wiley
Content preview from Adobe® Dreamweaver® CS4 Bible
243
Accessing the Code Directly
6
FIGURE 6-34
The generous Script dialog box provides plenty of room for modifying your JavaScript or VBScript.
Script Property inspector
When you choose JavaScript or VBScript as your Language type, Dreamweaver writes the code
accordingly. Both languages use the
<script> tag pair, and each is specified in the language attri-
bute, as follows:
<script language=”JavaScript”>alert(“Look Out!”)</script>
With Dreamweaver, you are not restricted to inserting code in just the <body> section of your Web
page. Many JavaScript and VBScript functions must be located in the
<head> section. To insert
this type of script, first choose View ➪ Head Content or, from the Options menu of the toolbar,
select Head Content. Next, select the now visible
<head> window and choose Insert ➪ Invisible
Tags ➪ Script, or click the Insert Script object. Enter your script as described earlier in this section
and then select the main Document window, or choose View ➪ Head Content again to deselect it.
82523c06.indd 243 2/19/09 8:57:52 AM
244
Part II
Designing and Crafting Basic Pages
You can also indicate whether your script is based on the client-side or server-side by choosing
the Type option from the Property inspector. If you choose server-side, your script is enclosed in
<server> ...
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

Adobe® Dreamweaver® CS5 Bible

Adobe® Dreamweaver® CS5 Bible

Joseph W. Lowery
Dreamweaver® CS3 Bible

Dreamweaver® CS3 Bible

Joseph W. Lowery

Publisher Resources

ISBN: 9780470382523Purchase book