-4

Can somebody provide me the official link where its written that a person can not change the default alert box of ie

rcky
  • 267
  • 2
  • 4
  • 15
  • No, because there probably isn't such a link. You cannot change it because *no way is provided to change it* not because *they say it can't be changed*. – Quentin Mar 06 '12 at 13:25
  • Not sure if it's "officially" written anywhere....you just can't do it. – Travesty3 Mar 06 '12 at 13:25
  • 4
    You can override alert(); and replace it with whatever html UI you like http://stackoverflow.com/questions/1729501/javascript-overriding-alert – Alex K. Mar 06 '12 at 13:25
  • because it is browser related functionality,,just we can invoke that's all – Sam Arul Raj T Mar 06 '12 at 13:26
  • @AlexK..is there a way to do it by javascript....because the link you provided here gives implementation in jquery – rcky Mar 06 '12 at 14:28
  • @rcky the accepted answer does not need jQuery; http://jsfiddle.net/alexk/hnnFx/ – Alex K. Mar 06 '12 at 15:06

2 Answers2

2

Look in the "Remarks" in the MSDN page about window.alert(). Given that "You cannot change the title bar of the Alert dialog box." is what Microsoft have to say about it that should be "official" enough for you.

(Having said that, window.alert() takes one parameter, the message, so obviously that's the only configurable thing.)

nnnnnn
  • 147,572
  • 30
  • 200
  • 241
1

An official link is not necessary. You cannot change it for security reasons. However, you can create your own custom alert/notification box using a bit of jQuery if you really wish.

Kurt
  • 7,102
  • 2
  • 19
  • 16