creating inputbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chelvan
    New Member
    • Aug 2008
    • 90

    creating inputbox

    hi
    sorry again,
    how to create an input box in javascript



    thanks in advans
    chel-1
    Last edited by chelvan; Sep 3 '08, 06:18 AM. Reason: remove
  • chelvan
    New Member
    • Aug 2008
    • 90

    #2
    hi
    all
    thanks.
    i got it
    chel-1

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Rather than just post that you solved it, you should also post how you managed to solve it. I assume you used document.create Element("input" )?

      Anyway, pleased that you did manage to solve it by yourself.

      Comment

      • chelvan
        New Member
        • Aug 2008
        • 90

        #4
        Originally posted by acoder
        Rather than just post that you solved it, you should also post how you managed to solve it. I assume you used document.create Element("input" )?

        Anyway, pleased that you did manage to solve it by yourself.

        ya....
        i found it very simple

        the code below

        Code:
        <script type="text/javascript">
        <!--
        
        var code = prompt ("Enter The Administative Code", "DEFAULT");
        if(code=="guest@tropic"){
        document.write("<input type='button' name='b1' value='Click To Edit'/>");
        }
        
        // -->
        </script>
        regards
        chel-1
        Last edited by acoder; Sep 3 '08, 02:20 PM. Reason: Added [code] tags

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          If you want to create it after the page has loaded, you can't use document.write( ).

          PS. please use code tags when posting code. Thanks.

          Comment

          • chelvan
            New Member
            • Aug 2008
            • 90

            #6
            Originally posted by acoder
            If you want to create it after the page has loaded, you can't use document.write( ).

            PS. please use code tags when posting code. Thanks.
            on javascript. i have a input dialogbox. is it able to read the inputs in hidden format

            thanks.
            chel-1

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              You mean the prompt()? No. You could create your own version of an input prompt making use of the password field.

              Comment

              Working...