skip to Main Content
<a href="#" onClick="myFunction22()"><img src="images/icon-exit.png" width="34" height="34" alt="Exit Fullscreen"></a>

I want a Hover ALT tag for this Onclick link saying… "Exit Fullscreen"

3

Answers


  1. you can use the title attribute for this.

    <a href="#" onClick="myFunction22()" title="Exit FullScreen"><img src="images/icon-exit.png" width="34" height="34" alt="Exit Fullscreen"></a>
    
    Login or Signup to reply.
  2. You can use the title attribute of the a tag like this:

      <a title="hello" href='/'>
        Hello world
      </a>
    
    Login or Signup to reply.
  3. You could do this without involving a link

    <img src="images/icon-exit.png" onclick="myFunction22()" width="34" height="34" title="Exit Fullscreen">
    

    but in either case, just use title=

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search