Hi to all
i want to make an msgbox that the user could choose more buttons that ok and cancel and also have a check box on it any help?
thnks
Hi to all
i want to make an msgbox that the user could choose more buttons that ok and cancel and also have a check box on it any help?
thnks
using javascript? what language?
Using Javascript you can't modify the existing message box. The only option I can think of is using window.open() to open a fake message box in a popup.
yes javascript but if i can't done with it i can use other lang too
but IE already has a window with a check box is the window that is displayed for security reasons and has a check box saying do not display that again how can i use that IE function it should exist a function for it am I wrong?
you can use VBScript. but that is IE only
how u know a way ?
thnks but that is not what i need i need to display a form with a check box and with button too msgbox function is not displaying a check box
i don't think you can add a checkbox to a messagebox
oh man i told u already 3 time I DO NOT WANT TO ADD A CHECKBOX TO MESSAGEBOX i want to make a form like the one that msgbox function is displaying but also i want that form to have a checkbox do u undesrtand what am i telling u?
A MsgBox is a Message Box...
i do not know what i m saying wrong but i will say it again
i want to make a form like the one that msgbox function is displaying but also i want that form to have a checkbox can i do it i think i can but how
Well, Javascript isn't like VB in that there are forms or even controls. Rather there are elements in an HTML document.
The most you can do is have a popup of a premade fake messagebox (you can use document.write() to change the text)...
the only kind of message box, is MsgBox
i think its not i posted that a few messages above don't u aggre?
but IE already has a window with a check box is the window that is displayed for security reasons and has a check box saying do not display that again how can i use that IE function it should exist a function for it am I wrong?
No, you can't use it, that's built into the browser, not Javascript or VBScript.
ok, you said that you saw a popup box open talking about security reasons. well, that is built into the browser, that is not done using VBscript.
Here's a quick-and-dirty example I made:
You could pop up a window like that (not maximized or too large of course).Code:<html>
<body bgcolor="#CCCCCC">
Would you like to save changes?<br><br>
<form name="msgbox">
<p align="right">
<input name="yes" type="button" value="Yes">
<input name="no" type="button" value="No">
</p>
<br><br>
<input type="checkbox" name="dontaskagain" value="checkbox">
Don't ask this question again
</form>
</body>
</html>
can i make that window modal?
Not using Javascript. You must understand that Javascript is not a programming language but rather a scripting language. VB is like a god to Javascript.
:mad: :mad: :mad: :mad: :mad:Quote:
Originally posted by filburt1
VB is like a god to Javascript.
you can't really compare them
Well, Javascript is still a scripting language so it is severely limited...
yeah, but so are all scripting languages
True, even VBScript. :)
and JScript for that matter :)
tolisss, make up your mind. do you want a message box or a form. your first post you said you want a msgbox then you say you want a form. which is it?? :confused:Quote:
Originally posted by tolisss
oh man i told u already 3 time I DO NOT WANT TO ADD A CHECKBOX TO MESSAGEBOX i want to make a form like the one that msgbox function is displaying but also i want that form to have a checkbox do u undesrtand what am i telling u?
if all you want is a form then you don't have to use javascript. you can just use plain html. but you can use javascript if you want.
what do you want that checkbox to do? if it is checked?
yeah dude, and don't yell at people if they are trying to help you, and you are the pne that is being unclear.
This tolisss is a rude motherf*&^%.
Let him work it out himself.