HTMLInput button - How to give it a Tool Tip

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing an ASP.Net web application in Visual Studio with a Visual Basic codebehind. I have an HTML Input button
<input type=button onclick="CopySelection()" value="Copy Sel"

How do I assign a Tool Tip?
 
Michael,
Add a title="tool tip" attribute to your input tag.

----- Michael SL wrote: -----

I am developing an ASP.Net web application in Visual Studio with a Visual Basic codebehind. I have an HTML Input button:
<input type=button onclick="CopySelection()" value="Copy Sel">

How do I assign a Tool Tip?
 
Did you try the title?
<input type=button onclick="CopySelection()" value="Copy Sel"
title="MyToolTip">

Works for me and IE :)

George.


Michael SL said:
I am developing an ASP.Net web application in Visual Studio with a Visual
Basic codebehind. I have an HTML Input button:
 
Barr

Thank you. This is the second time the answer to one of my questions has been an attribute. Where can I get a list of ALL of the attributes for ALL of the controls

Michael
 
Any good HTML reference will give them to you.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Michael SL said:
Barry

Thank you. This is the second time the answer to one of my questions has
been an attribute. Where can I get a list of ALL of the attributes for ALL
of the controls?
 
Look up in MSDN
IHTMLElement

You will find the generic methods and properties supported by generic HTML
control.
If you need to get more specific. find appripriate interface like
IHTMLInputElement.

Alsmost any property ca be specified in HTML as name="value" Beware though
some of them are IE only.

George.

Michael SL said:
Barry

Thank you. This is the second time the answer to one of my questions has
been an attribute. Where can I get a list of ALL of the attributes for ALL
of the controls?
 
Back
Top