BILL Carlisle
asked on
BOLD and color RED an alert() popup ??
Hi All,
I have an alert() with text in it. My customer wants part of the text to be BOLD and RED.
Is there a way to do this?
Thanks, Bill
I have an alert() with text in it. My customer wants part of the text to be BOLD and RED.
Is there a way to do this?
Thanks, Bill
ASKER
How do you do that?
If I want to have it look like the "alert()" but be able to control text color, weight, font... what would I need to do?
If I want to have it look like the "alert()" but be able to control text color, weight, font... what would I need to do?
Well, you can't really make it look like an alert window, as an alert window looks completely different depending on the browser, operating system, desktop style, et.c.
A popup window is just a page that you open using window.open.
http://msdn2.microsoft.com/en-us/library/ms536651.aspx
If you are developing strictly for Internet Explorer, you can use window.showModalDialog, which gives you a modal popup window.
A popup window is just a page that you open using window.open.
http://msdn2.microsoft.com/en-us/library/ms536651.aspx
If you are developing strictly for Internet Explorer, you can use window.showModalDialog, which gives you a modal popup window.
ASKER
So it is not doable...
Reimburse points?
Reimburse points?
> So it is not doable...
To do exactly what you asked for is impossible. You got some alternatives, if you clarify the question with what you want to accomplish rather than just asking about the limitations of an alert box, there might be even more alternatives.
For example, when do you show the alert box, and why did you choose an alert box to show the information?
> Reimburse points?
Well, you got a definitive answer to your question. Just because the answer is "no", doesn't mean that there is anything wrong with it. And I'm still here to see if there might be some other alternatives in your impossible mission...
To do exactly what you asked for is impossible. You got some alternatives, if you clarify the question with what you want to accomplish rather than just asking about the limitations of an alert box, there might be even more alternatives.
For example, when do you show the alert box, and why did you choose an alert box to show the information?
> Reimburse points?
Well, you got a definitive answer to your question. Just because the answer is "no", doesn't mean that there is anything wrong with it. And I'm still here to see if there might be some other alternatives in your impossible mission...
ASKER
Sorry GreenGhost,
I didn't realize you had posted another response.. I must have overlooked the email..
What I am using the alert for is an error message popup.
in my code I have:
alert(errormsg);
but the customer wants red and bold words to show up better.
Is there an easy code snippet that I could replace the alert using a window without alot of research?
Thats why I increased points to 300..
Thank you in advance.. Bill
I didn't realize you had posted another response.. I must have overlooked the email..
What I am using the alert for is an error message popup.
in my code I have:
alert(errormsg);
but the customer wants red and bold words to show up better.
Is there an easy code snippet that I could replace the alert using a window without alot of research?
Thats why I increased points to 300..
Thank you in advance.. Bill
ASKER
Hello, Anyone out there?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi GreenGhost,
Sorry it took so long to get back to this... that is great. I can add onto that in many situations...
Thank you, Bill
Sorry it took so long to get back to this... that is great. I can add onto that in many situations...
Thank you, Bill
If you want to change anything about how the alert looks, you have to make your own popup window.