0

For the designing purpose,how to change font color and style in alertbox. Actually i have use session in my project and if user do not respond till 30 seconds, i am trying to warn user using alertbox, or anyother way to do this.

thanks in advance.

Deepu
  • 11,587
  • 13
  • 55
  • 88
DS9
  • 2,843
  • 4
  • 48
  • 99
  • How are you showing the alert? – Matt Ball Mar 01 '13 at 04:55
  • possible duplicate of [How to increase font size in javascript alert()](http://stackoverflow.com/questions/6507823/how-to-increase-font-size-in-javascript-alert) – Ken Mar 01 '13 at 18:33

2 Answers2

1

Do a console.log( $(this) ) instead of alert

Then add CSS like

$(this).css('font-size','12px');
EnterJQ
  • 986
  • 7
  • 18
0

alertbox is built-in, so, we can't edit it. You can create dialogs and can style them as you want.

Muhammad Talha Akbar
  • 9,654
  • 6
  • 37
  • 61