O'Reilly logo

Microsoft® Office SharePoint® Designer 2007 Bible by Vikram Kartik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.2. Using SharePoint Designer Behaviors

Behaviors allow Web site designers to create DHTML effects and functionality on Web pages without having to write a lot of JavaScript code. SharePoint Designer has prewritten JavaScript actions that provide a large set of functions. In this section, I discuss these actions and show you how to use them for Web page development.

8.2.1. Understanding behaviors

Behaviors are basically predefined JavaScript functions that can be used with various DHTML events to obtain a specific functionality. Table 8.1 shows a list of behaviors available in SharePoint Designer.

Table 8.1. List of SharePoint Designer Behaviors
BehaviorDescription
Call scriptAllows you to use a JavaScript function that you want to use (in case you have a function you wrote)
Change propertyAllows you to change the HTML properties and attributes of selected HTML tags and elements
Change property restoreRestores the HTML properties/attributes changed by the Change Property behavior
Check browserAllows you to check the version of a browser being used and redirect to a URL based on that browser's version
Check plug-inAllows you to check the plug-in type and redirect to a URL based on that type
Go to URLTakes you to the specified URL
Jump menuAllows you to create a dropdown menu with choices that take you to the associated URL
Jump menu goAfter the Jump menu is used, allows you to go to a URL based on the selected index of the Jump menu
Open browser windowOpens the specified URL in a new browser ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required