GustyWind
GustyWind

Reputation: 3036

javascript alert box not working in FireFox4

The JavaScript alert box is appearing without close mark on top right side nor its showing any alert symbol as shown below.

enter image description here

The same in IE8 works fine

enter image description here

Both are running on Windows 7 platform

Upvotes: 1

Views: 1010

Answers (1)

Spudley
Spudley

Reputation: 168853

What you're seeing is how Firefox 4 renders an alert box. They've gone for a minimalist look.

There's nothing you can do about it -- how the alert() function renders its popup is entirely at the discression of the browser, and they all do it slightly differently.

If you want control over how the box looks, you will need to write your own in Javascript, or use one of the hundreds of Javascript and JQuery examples written by other people who have already found they need more flexibility than the standard alert box can give them.

[EDIT]

Here's a blog post where the change to how the alert box works is discussed: http://www.derekallard.com/blog/post/firefox-4-alert-boxes/

There's actually a lot more that's changed than just how it looks; it actually works quite differently too in FF4.

Upvotes: 2

Related Questions