Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


JavaScript Programming

JavaScript > Code Examples

Add button a window

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Add button a window <html> <head> <title>Happy Codings :-) C++, C#, HTML, Java, JavaScript Code Examples</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() { var doSwitch = function(btn) { alert("Happy Codings :-) JavaScript Code Examples"); } var myWin = new Ext.Window({ x : 100, height : 200, width : 300, layout : 'fit', title : 'myWin2', buttons : [ { text : 'OK', handler : doSwitch } ] }); myWin.show(); }); </script> <div id='div1'>Happy Codings :-) C++, C#, HTML, Java, JavaScript Code Examples</div> </body> </html>