Forum Moderators: open

Message Too Old, No Replies

Alt tags in Netscape

Alt tags on form elements not displaying in Netscape

         

dutchman

11:02 am on Jul 31, 2002 (gmt 0)

10+ Year Member



Hello to you.

Ok, we have a form in a php page which uses three images to transfer to other pages, taking various parameters along the way. In IE, these form elements, which are buttons, have alt tags that are exactly the same as the title of the button (Edit Order,for instance). However, the alt tag isn't displaying in Netscape, instead it is displaying the name attribute. Here's the code:

<input type="image" name="sub2" src="images/editorder.gif" width="90" height="23" alt="Edit order" border="0" />

IE displays "Edit Order"
Netscape (gawd bless) displays "sub2"

Our programmer can change the name of the buttons, but this has a knock on effect and I was wondering if anybody knows of a quick fix to this problem (perhaps an alternative alt type tag?)

Any help much appreciated.

tedster

11:41 am on Jul 31, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're talking about Netscape 4.x, it's going to show the name attribute of the form element, even if you also use a title attribute or an alt attribute. That's just the way it is.

Opera and IE will show a title attribute as the tool-tip if you declare one.

Can't test my Netscape 6 right now - it got in a fight with Mozilla and they both blew up!

dutchman

12:05 pm on Jul 31, 2002 (gmt 0)

10+ Year Member



Thanks Tedster.

Sounds like we're stuck with it.

Now where did I put that programmers number...