TO ADD NEW CHECK BOX ON SAME PAGE |
TO ADD NEW CHECK BOX ON SAME PAGE |
harjeemann |
Dec 18 2007, 05:13 AM
Post
#1
|
Group: Members Posts: 2 Joined: 18-December 07 Member No.: 4,549 |
HI ALL,
i am new to HTML and need some help for my html form below is the example i have written. actually i need to add my checkbox inthe same page where the take val button is placed. but with the highlighted line i get a whole new page with the checkbox. a kind help will be appreciate. <HTML> <HEAD> <script LANGUAGE="vbscript"> alert("i am the main script") </SCRIPT> </HEAD> <BODY bgcolor="#fffacd"> <BODY> <FORM NAME = Form1 > <INPUT TYPE="button" NAME="Button2" VALUE="take val"> <script LANGUAGE="vbscript"> Sub Button2_OnClick For i = 1 To 4 alert (i) document.write "<INPUT TYPE=checkbox NAME=" & i & " CHECKED>" & i[color=#FF0000] Next End Sub </SCRIPT> </FORM> </BODY> </HTML> the example |
Brian Chandler |
Dec 18 2007, 10:22 AM
Post
#2
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
Perhaps someone can clarify for me - I thought that vbscript was only supported by MSIE, no? (Seems rather pointless writing stuff that only works on one, fading browser.)
|
harjeemann |
Dec 20 2007, 07:02 AM
Post
#3
|
Group: Members Posts: 2 Joined: 18-December 07 Member No.: 4,549 |
Perhaps someone can clarify for me - I thought that vbscript was only supported by MSIE, no? (Seems rather pointless writing stuff that only works on one, fading browser.) i am new but these codes are working but opening in new browser i want to open the check box on the same page where my button is present. please help a great problem for me. |
Lo-Fi Version | Time is now: 25th April 2024 - 12:03 PM |