 | 
September 3rd, 2008, 06:58 AM
|  | Member | | Join Date: Aug 2008 Location: Colombo 06, Srilanka Age: 23
Posts: 86
| | creating inputbox
hi
sorry again,
how to create an input box in javascript
thanks in advans
chel-1
Last edited by chelvan; September 3rd, 2008 at 07:18 AM.
Reason: remove
| 
September 3rd, 2008, 07:19 AM
|  | Member | | Join Date: Aug 2008 Location: Colombo 06, Srilanka Age: 23
Posts: 86
| |
hi
all
thanks.
i got it
chel-1
| 
September 3rd, 2008, 11:11 AM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 12,964
| |
Rather than just post that you solved it, you should also post how you managed to solve it. I assume you used document.createElement("input")?
Anyway, pleased that you did manage to solve it by yourself.
| 
September 3rd, 2008, 01:42 PM
|  | Member | | Join Date: Aug 2008 Location: Colombo 06, Srilanka Age: 23
Posts: 86
| | Quote: |
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.createElement("input")?
Anyway, pleased that you did manage to solve it by yourself. |
ya....
i found it very simple
the code below - <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; September 3rd, 2008 at 03:20 PM.
Reason: Added [code] tags
| 
September 3rd, 2008, 03:22 PM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 12,964
| |
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.
| 
September 4th, 2008, 04:33 AM
|  | Member | | Join Date: Aug 2008 Location: Colombo 06, Srilanka Age: 23
Posts: 86
| | Quote: |
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
| 
September 4th, 2008, 11:30 AM
|  | Site Moderator | | Join Date: Nov 2006 Location: UK
Posts: 12,964
| |
You mean the prompt()? No. You could create your own version of an input prompt making use of the password field.
|  | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 205,248 network members.
|