-
JavaScript Question
My teacher asked me to post a question about javascript hope you can help.
He's wanting a window type prompt box to pop up in the middle of the screen i need to know if theres a property's command to center like in Visual. I know its kind of an open ended question but i dont know what im talking about im just helping out my teacher.
Any info would be appreciated.
Thanks
James
-
var variableName = prompt("Message", "default value in the text field");
This should do what you want, not sure if you can adjust the screen positioning, google the 'prompt' function in javascript and maybe you can find some more details.
-
Point them to http://developer.netscape.com.
Complete references to all kinds of web related languages, including Javascript.
/nebulus
-
Here's a nice script I found that's not only CSS customizable, but you can adjust width/height and position on the screen:
http://javascript.internet.com/messa...pt-prompt.html