JavaScript Question
Results 1 to 4 of 4

Thread: JavaScript Question

  1. #1
    Junior Member
    Join Date
    Jun 2003

    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.


  2. #2
    Senior Member
    Join Date
    Sep 2003
    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.

  3. #3
    Jaded Network Admin nebulus200's Avatar
    Join Date
    Jun 2002
    Point them to

    Complete references to all kinds of web related languages, including Javascript.

    There is only one constant, one universal, it is the only real truth: causality. Action. Reaction. Cause and effect...There is no escape from it, we are forever slaves to it. Our only hope, our only peace is to understand it, to understand the 'why'. 'Why' is what separates us from them, you from me. 'Why' is the only real social power, without it you are powerless.

    (Merovingian - Matrix Reloaded)

  4. #4
    Here's a nice script I found that's not only CSS customizable, but you can adjust width/height and position on the screen:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts