Accessibility
 
Home > Products > Dreamweaver > Support > Using Behaviors
Dreamweaver Icon Macromedia Dreamweaver Support Center - Using Behaviors
Check Plugin

Use the Check Plugin action to send visitors to different pages depending on whether they have the specified plugin installed. For example, you might want visitors to go to one page if they have Shockwave and another page if they do not.

Note: You cannot detect specific plugins in Microsoft Internet Explorer using JavaScript. However, selecting Flash or Director in the Check Plugin dialog box will add the appropriate JavaScript code to your page to detect those plugins in Internet Explorer in Windows. Plugin detection is impossible in Internet Explorer on the Macintosh.

To use the Check Plugin action:

1 In Dreamweaver, select an object and open the Behaviors panel.
2 Click the plus (+) button and choose Check Plugin from the Actions pop-up menu.
3 In the Check Plugin dialog box, choose a plugin from the Plugin pop-up menu, or click Enter and type the exact name of the plugin in the adjacent field.
You must use the exact name of the plugin as specified in bold on the About Plug-ins page in Navigator. (In Windows, choose Navigator's Help > About Plug-ins command; on the Macintosh, choose About Plug-ins from the Apple menu.)
4 In the If Found, Go To URL field, specify a URL for visitors who have the plugin.
If you specify a remote URL, you must include the http:// prefix in the address.
To make visitors with the plugin stay on the same page, leave this field blank.
5 In the Otherwise, Go To URL field, specify an alternative URL for visitors who don't have the plugin.
To make visitors without the plugin stay on the same page, leave this field blank.
6 Plugin detection is not possible in Internet Explorer on the Macintosh, and most plugins cannot be detected in Internet Explorer in Windows. By default, when detection is impossible, the visitor is sent to the URL listed in the Otherwise, Go To URL field. To instead send the visitor to the first (If Found) URL, select the Always Go To First URL If Detection Is Not Possible option. When selected, this option effectively means "assume that the visitor has the plugin, unless the browser explicitly indicates that the plugin is not present."
In general, if the plugin content is integral to your page, select the "Always go to first URL if detection is not possible" option; visitors without the plugin will often be prompted by the browser to download the plugin. If the plugin content is not essential to your page, leave this option unselected.
7 Click OK.
8 Check that the default event is the one you want.
If it isn't, choose another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For pop-up menu.
To Table of Contents Back to Previous document