Bold Javascript Alert?
Is there any way to make the text in a javascript alert box display as bold. It's so hard to read... I can't believe there isn't a built-in "bold" property. I'm somewhat of a JS newbie, although I've tried what's obvious to me... to no avail. Thanks.
dk01 posted this at 06:47 — 11th March 2005.
He has: 516 posts
Joined: Mar 2002
No. All fonts are controlled.
-dk
timjpriebe posted this at 12:50 — 11th March 2005.
He has: 2,667 posts
Joined: Dec 2004
dk01 is right. The alert box is actually a Windows pop-up window (if you're using Windows). Since it's not an HTML document, the font properties are controlled by Windows.
Tim
http://www.tandswebdesign.com
bja888 (not verified) posted this at 19:55 — 11th March 2005.
They have: 5,633 posts
Joined: Jan 1970
you can try makeing it look better by adding a \n in the string in place of a but thats about all u can do
Greg K posted this at 22:31 — 11th March 2005.
He has: 2,145 posts
Joined: Nov 2003
I came across something the other day I was going to look at. On our program, if you are in the middle of editing your data, and go to click on a link that will take you away, currently we have an alert box pop up letting them know that all changes will be discarded.
Well we developed a layer to display instead, however, when that popped up you were still able to click on links. So we wtuck with the alert box.
I was getting my yahoo mail the other day, and I don't know exactly where, think it was if i selected all messages to delete, it popped up a custom looking message box, yet you couldn't click on the main window until that went away, so it acted like an alert box, but looked like a custom layer.
You may want to go look for this and check the code behind it. I plan to once we get to the list of "to do after launch"
-Greg
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.