Click to See Complete Forum and Search --> : Does the alert method have any properties available?


bsd12673
12-04-2003, 08:58 AM
I just noticed on the new interface for hotmail that when you empty your trash it comes up with a confirm box that has some background color to it and colored buttons. It's not a gray pop up like most Confirm boxes. I was curious if this can be done with alerts as well. I couldn't get access to their .js file to see how they were doing it but I'm guessing they are using typical bgColor properites etc.. to get the effect. Does anyone know if that is accurate and if so can the same be doen to an alert box?

Thanks,
Ben

Pittimann
12-04-2003, 09:02 AM
Hi!

Sorry - but an alert is just an alert and in js you cannot do anything to make it look different...

Cheers - Pit

fredmv
12-04-2003, 10:11 AM
I'm guessing that since it's Hotmail — a Microsoft service — they're using proprietary IE code. That confrim window you saw was most likely a modal dialog (http://javascript.about.com/library/weekly/aa091001a.htm) in which contains another HTML document, therefore allowing it to look like anything. Be warned, however, that they only work in IE so it isn't really a good idea to use them if you care about cross-browser functionality.

ray326
12-04-2003, 10:13 AM
Doesn't Hotmail now require you to use IE6? They're prolly playing with proprietary IE extensions to do that.

bsd12673
12-04-2003, 12:29 PM
Thanks for the info guys. I appreciate it.

Dennis
12-04-2003, 12:36 PM
which method has properties? :)

no 1