Sep 08

Ext JS tutorial 3 : Message box with ok button

Ext Js Message box with ok button example:

[code lang=”html”]<html>
<head>
<title>Hello World</title>

<link rel="stylesheet" type="text/css" href="/EXTJS3.4/ext-3.4.1/resources/css/ext-all.css" />
<script type="text/javascript" src="/EXTJS3.4/ext-3.4.1/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="/EXTJS3.4/ext-3.4.1/ext-all-debug.js"></script>
</head>
<body>

<script type="text/javascript">
Ext.onReady(function() {
Ext.Msg.show({
msg:" I am a message box",
buttons : Ext.MessageBox.OK
});
})
</script>

</body>
</html>
[/code]

Output :