The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> TO ADD NEW CHECK BOX ON SAME PAGE
harjeemann
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post 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.)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
harjeemann
post Dec 20 2007, 07:02 AM
Post #3





Group: Members
Posts: 2
Joined: 18-December 07
Member No.: 4,549



QUOTE(Brian Chandler @ Dec 18 2007, 10:22 AM) *

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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 12:03 PM