Macromedia dreamweaver 8-using dreamweaver User Manual
Previewing and testing pages in browsers
363
To save a recorded command:
1.
Select Commands > Play Recorded Command to play the command back.
A step named Run Command appears in the History panel’s step list.
2.
Select the Run Command step and click the Save As Command button.
3.
Enter a name for the command and click OK.
The command appears in the Commands menu.
Using JavaScript behaviors to detect
browsers and plug-ins
browsers and plug-ins
You can use behaviors to determine which browser your visitors are using and whether they
have a particular plug-in installed. For more information on behaviors, see
have a particular plug-in installed. For more information on behaviors, see
Check Browser
sends visitors to different pages depending on their browser brands and
versions (see
). For example, you may want visitors to go to one
page if they have Netscape Navigator 4.0 or later, to go to another page if they have Microsoft
Internet Explorer 4.0 or later, and to stay on the current page if they have any other kind of
browser.
Internet Explorer 4.0 or later, and to stay on the current page if they have any other kind of
browser.
Check Plugin
sends visitors to different pages depending on whether they have the specified
plug-in installed (see
). For example, you may want visitors to go
to one page if they have Macromedia Shockwave and another page if they do not.
Previewing and testing pages in browsers
You can preview a document in a browser at any time; you don’t have to save the document
first or upload it to a web server.
first or upload it to a web server.
This section covers the following topics:
■
■
■