 # JavaScript Programming

## JavaScript > Code Examples

### Add split button to Toolbar

``` Add split button to Toolbar <html> <head> <title>Happy Codings :-) JavaScript - Learn Web Development</title> <link rel="stylesheet" type="text/css" href="ext-3.0.0/resources/css/ext-all.css" /> <script type="text/javascript" src="ext-3.0.0/adapter/ext/ext-base.js"></script> <script type="text/javascript" src="ext-3.0.0/ext-all.js"></script> </head> <body> <script type="text/javascript"> Ext.onReady(function() { new Ext.Toolbar({ renderTo: Ext.getBody(), items: [ { xtype: 'tbsplit', text: 'Split Button', menu: [ { text: 'Item One' }, { text: 'Item Two' }, { text: 'Item Three' } ] } ]}); }); </script> <div id='div1'>Happy Codings :-) C++, C#, HTML, Java, JavaScript Code Examples</div> </body> </html> ```

Program for Beginners: Area of Rectangle - A plane figure with 4 sides & 4 right angles & having Equal Opposite sides. Adjucent sides makes an Angle of 90 degree. Just compute the area of a Rectangle if you know its length

C Program Code to Print Diamond Pattern - Take the number of rows as input and store in the variable number. Firstly decrement the variable number by 1 and assign this value to the variable count. Use this variable count as

Fisher-Yates Algorithm & Array Shufflings - Program to "shuffle array" using Fisher-Yates algorithm. This algorithm for "generating" a 'Random Permutation' of a finite set-in plain terms, for randomly shuffling the set. Variant

C Calculate the total Revenue and Output - C Programming Choosing the correct type: long. Calculate quarterly total. Output monthly sales and total for the quarter. Calculate the total revenue and output it.

Print the Kind of Rotation the AVL Tree is - Program to print the kind of rotation that is performed when an 'Element is inserted' or deleted from tree. In Discrete Mathematics, tree rotation is an operation on a binary tree

Find the First Occurrence of a Character in - C program to 'input any string' from user and find the 'first occurrence' of a given character in the string. Input string from user and store it in a variable say "str". Run a loop from start

Demonstrates Printf Inside Another Printf - Firstly Inner printf is executed which results in printing 1324. Printf returns 'Total Number' of Digits:4 & second inner printf will looks like. It prints 4 & Returns the Total Number of digits

Simple Programs Area Of Square Formula - The second power was described in terms of the area of a square, as in the above formula. It led to the use of the term square to mean raising to the "second power". Thus the area