•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,533 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,919 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1190 | Replies: 3
![]() |
•
•
Join Date: Aug 2007
Posts: 21
Reputation:
Rep Power: 2
Solved Threads: 0
I am making a form which will take inputs such as email, password etc.
And the form checks whether it is a valid email id or password, if not an alert is being shown such as invalid email-id..
I have done this with java script..
Now I would like to change the font colour and background colour of the alert box..
How can I use Java script to do this.. Please help with code..
And the form checks whether it is a valid email id or password, if not an alert is being shown such as invalid email-id..
I have done this with java script..
Now I would like to change the font colour and background colour of the alert box..
How can I use Java script to do this.. Please help with code..
You can't. It's implementation defined. Each browser has it's own way of showing the alert box though the presence of 'external skins' installed for that browser may change the appearance of the alert box but other than that, you have no control whatsoever.
Your best bet would be to use a Javascript library like YUI which pops up a programmable and skinnable "div" giving you the impression of a custom alert box.
Your best bet would be to use a Javascript library like YUI which pops up a programmable and skinnable "div" giving you the impression of a custom alert box.
I don't accept change. I don't deserve to live.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Time to Reviews? Check these first!!! (Website Reviews)
- Please help with colour Transparency... (Visual Basic 4 / 5 / 6)
- CSS hover on individual link (li) ??? (HTML and CSS)
- PHP's include function ??? (PHP)
- Printing (Python)
- Gauge colour in python (Python)
- Need help with directory displayer code (PHP)
- Background Colors (Java)
- How do i set a page background color? (HTML and CSS)
- IE6 - Not displaying background colours... (Web Browsers)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Flash
- Next Thread: Drop down - ajax



Linear Mode