|
-
Dec 4th, 2001, 01:00 AM
#1
Thread Starter
Member
Three problems
1) I have just starting learning HTML, i have a few simple question.
How i can make forms button same size exm. button1 = Search and button2 = ok.
2) And how i can check if back button in browser select ?
3) if i have three button how i can send value to next page or should i have three hyperlinks all page ?
Thanks you
Tweety99
-
Dec 4th, 2001, 02:17 AM
#2
PowerPoster
hi
1)For the OK button try:
<input type=button name=OK value=" OK ">
Use spaces in the value - attribute.
2)The question is not very clear. Perphaps u need to capture when the user clicks on the back button.
That is not possible as far as I know. If u want u can use onunload event of the body tag.
3)You can use buttons - but u need to enclose them in a form tag.
Hope this helps.
-
Dec 4th, 2001, 03:31 AM
#3
Thread Starter
Member
simple questions ?
Hi,
thanks but how i make it same size
when i had write this
<input type=button size= 10 name=OK value=" OK ">
nothing happend why ?
can i make my text two rows or ???
And when bodyunload how i know are users going forward or back ?
thanks you,
Tweety99
-
Dec 4th, 2001, 04:14 AM
#4
PowerPoster
hi
For the button u cannot give the 'size' attribute.
the only way to make it wide is fill spaces between the quotes of the value ie value=" OK " and NOT like this value="OK"
Hope this explains it
Code:
<input type=button name=OK value=" OK ">
About the back - button .
Yes u cannot detect whether the back button was clicked or the forward button was clicked.
If u want to disable the back button - that too is NOT possible.
View thread:
http://forums.vb-world.net/showthrea...le+back+button
can i make my text two rows or ???
I think u want a textbox with multiline facilty - for that u can use textarea like this:
Code:
<textarea rows=3 cols=40 name=mytextarea></textarea>
-
Dec 4th, 2001, 05:02 AM
#5
Thread Starter
Member
-
Dec 4th, 2001, 08:53 AM
#6
Frenzied Member
not sure,
but for ?? about the 3 buttons
if you have
<input type=button name=submitButton value=ok>
<input type=button name=submitButton value=delete>
<input type=button name=submitButton value=modify>
well on your asp(or whatever you use)page you can use
if request("submitButton")="ok" then
elseif request("submitButton")="delete" then
else
end if
hope it helps
-
Dec 6th, 2001, 11:49 AM
#7
Re: Three problems
Originally posted by Tweety99
1) I have just starting learning HTML, i have a few simple question.
How i can make forms button same size exm. button1 = Search and button2 = ok.
2) And how i can check if back button in browser select ?
3) if i have three button how i can send value to next page or should i have three hyperlinks all page ?
Thanks you
Tweety99
1) the only wqay you can do this is to make it a graphic (picture) of a button. Because NS4.x treats form attributes a lot different then IE5+ does.
2) you can't
3) if you use one form you only get one submit button. you can have more than one form on a page. but you can only use one button to send the forms information.
-
Dec 13th, 2001, 09:49 AM
#8
Member
Scout man the third question you're wrong.
You can have multiple submit buttons on a form, and each one can change the action (by adding a querystring to the processing page for example).
See this thread for more info:
http://www.vbforums.com/showthread.p...hreadid=124948
-
Dec 13th, 2001, 07:41 PM
#9
thanks daveejay, I realized that after I posted it and was too lazy to reply to it. I always forget about javascript.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|