Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing button's caption on click
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00752305
Message ID:
00752313
Vues:
13
>Hi everybody,
>
>Couple of questions from newbie:
>
>1) How can I change functionality and caption of the button, after it's clicked. E.g. Add to Cart after I click on it should change to Remove from Cart
>
>2) How do you set tooltips and statusbartext in ASP? (HTML)
>
>Thanks in advance.

Nadya;

Here is some of what you asked. We use VB Script as you can see. If you need Java Script let me know
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<form name="frm1" >


<INPUT  type="button"id=cmdButton name=cmdButton value="Button" title="There are five Mondays in every work week" 
		style="position:absolute;
		left:100;
		top:10;
		width=50">


</form>
</BODY>
</HTML>

<script Language=vbScript>
sub cmdButton_OnClick()
	if frm1.cmdButton.value = "Button" then
		frm1.cmdButton.value = "Hello" 
	else
		frm1.cmdButton.value = "Button"
	end if
end sub	

</script>
Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform