---
title: "How to chnage backcolor of alert box in sencha?"  
description: "How to chnage backcolor of alert box in sencha?"  
author: "Anonymous User"  
published: 2013-05-30  
updated: 2013-05-30  
canonical: https://www.mindstick.com/forum/945/how-to-chnage-backcolor-of-alert-box-in-sencha  
category: "sencha touch"  
tags: ["sencha touch"]  
reading_time: 1 minute  

---

# How to chnage backcolor of alert box in sencha?

I got an issue with the [alert box](https://www.mindstick.com/forum/117/problem-in-displaying-alert-box-in-asp-dot-net) of [sencha touch](https://www.mindstick.com/interview/23004/define-class-system-of-sencha-touch) control. Issue is: I would like to change [background color](https://www.mindstick.com/forum/12937/how-to-style-togglebutton-so-that-the-background-color-is-white) of alert box, I tried to implement [CSS](https://www.mindstick.com/forum/514/background-gradient-ie7-css-problem) but its not letting me to do it.

Is there any other way to change background color of alert box in sencha?

[Early](https://www.mindstick.com/blog/12923/do-you-want-an-early-and-valuable-promotion-at-work) reply will be appreciated!

Thanks

## Replies

### Reply by Anonymous User

Hi Alex,

You can perform this task as follows:

***var msg = new Ext.MessageBox();\
msg.show({\
title: 'Hello World',\
msg: 'Testing code',\
buttons: [{text:'Sure',itemId:'Ok'}],\
style:'[background](https://www.mindstick.com/articles/65/how-to-change-background-color-of-tab-control-in-c-sharp)-[color](https://www.mindstick.com/articles/77/how-to-split-form-background-color-in-c-sharp):blue;'\
});***

I hope this code might be resolve your problem.


---

Original Source: https://www.mindstick.com/forum/945/how-to-chnage-backcolor-of-alert-box-in-sencha

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
