sabregirl
asked on
javascript alert message box
Hello. I am currently taking a JavaScript class and I have learned how to create alert box this week :) I am curious that if there's a way to expand the number of characters allowed for these type of boxes for a long message to still show?
A friend of mine mentioned me about my other question of the positioning of alert box, he mentioned me that I need to use css and create modal popups and overlays. Can I use the same method?
Thank you for your help in advance.
A friend of mine mentioned me about my other question of the positioning of alert box, he mentioned me that I need to use css and create modal popups and overlays. Can I use the same method?
Thank you for your help in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Elvin: VBScript is not javascript. Please do not introduce IE-only VBScript to a student of JavaScript :)
-------------------------- ---------- --
Firefox 4 has by the way gotten scrollbars in its alert :)
jQuery UI Dialog is also an option, so is the buildt-in showModalDialog
--------------------------
Firefox 4 has by the way gotten scrollbars in its alert :)
jQuery UI Dialog is also an option, so is the buildt-in showModalDialog
I've got no idea what you meant by your comments.
@Elvin: The asker is studying JavaScript and asks about a JavaScript issue.
You present him with a VBScript solution which is irrelevant since this is a JavaScript question.
From http://uopteamc.tripod.com/javavb.html
Comparison of JavaScript and VBScript
Similarities
Differences
You present him with a VBScript solution which is irrelevant since this is a JavaScript question.
From http://uopteamc.tripod.com/javavb.html
Comparison of JavaScript and VBScript
Similarities
Both languages are easy to learn and do not require any expensive development tools
Both can be used to enhance web pages
They run on client machines and can substitute CGI programs to reduce server loads
Both can abuse and run malicious scripts on clients' machines
Differences
JavaScript is the default scripting language for browsers but VBScript must be specified as the scripting language.
JavaScript has cross-platform support from all popular browsers while VBScript is supported MS IE only. VBScripters would thus lose a sizable audience.
mplungjan:
Fair comment by the asker posted this:
I am curious that if there's a way to expand the number of characters allowed for these type of boxes for a long message to still show?
Now as I am from English decent that means he/she wants to know if there is a way to make larger messages in a messagebox. They did not ask that the answer MUST be in javascript. If that is the requirement for the question it should has been posted that way. I help people achieve a goal in any way I can. When people post in the PHP forum about how to achieve something like posting a form without refreshing, would you expect us experts to only supply the answer in Php code? I didn't think so. thanks for your comments but I think they are unwarranted in this case. I will excuse myself from this question and any more comments.
Fair comment by the asker posted this:
I am curious that if there's a way to expand the number of characters allowed for these type of boxes for a long message to still show?
Now as I am from English decent that means he/she wants to know if there is a way to make larger messages in a messagebox. They did not ask that the answer MUST be in javascript. If that is the requirement for the question it should has been posted that way. I help people achieve a goal in any way I can. When people post in the PHP forum about how to achieve something like posting a form without refreshing, would you expect us experts to only supply the answer in Php code? I didn't think so. thanks for your comments but I think they are unwarranted in this case. I will excuse myself from this question and any more comments.
No need to be offended, no offense intended. Just read the title, the tags and the first line of the question again. I could suggest to dowload webkit, change the size of the alert box and recompile a personalised browser. Valid suggestion but not relevant :)
sabregirl:
I believe your question has been answered. If you disagree, please comment.
I believe your question has been answered. If you disagree, please comment.
ASKER
Thank you for everyone who left comments for me :) I have learned something new...
A split would have been nice... :)
ASKER
Sorry mplungjan. I will keep in mind next time!
MsgBox(prompt[,buttons][,t
See the example and explanation here.
http://www.w3schools.com/VBScript/func_msgbox.asp