Spry

Set default open panel

You can set a panel to be open when the page containing the Tabbed Panels widget loads in a browser.

 Set the defaultTab option in the constructor as follows:
<script type="text/javascript">
	var TP1 = new Spry.Widget.TabbedPanels("TabbedPanels1", { defaultTab: 2 });
</script>
Note: The Tabbed Panels widget uses a zero-based counting system, so setting the value to 2 opens the third tabbed panel.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/en_US/Spry/SDG/WSE064A5B7-E9A2-416a-BB65-096B7F9C3258.html