code question--links

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default code question--links

    I went to a site today which had some links which were very annoying because
    the little hand didn't come up when you mouse over them, so you had no way
    of knowing they were links, except the wording said "click here" or some
    such thing. Anyway, clicking these links would bring up popup windows, and
    the code for one such link looks like this:

    <u
    onclick="MM_openBrWindow('request.htm','winRequest ','scrollbars=yes,width=85
    0,height=500')">Click
    to Fill out the Request Form</u>

    I am not sure what the <u> tag is, but is this way of linking preferable to
    the <a href> way? What possible reasons could this webmaster have had for
    doing it this way?


    middletree Guest

  2. Similar Questions and Discussions

    1. Code for email links within database generated pages?
      What is the line of code that must go into a database genearted deatils page to make an email address a live, "mailto" link? I can't remember how to...
    2. links question
      When i put a link on a page it is underlined. I was on a site there the link became underlined when you moused over it. How is this done? Thanks
    3. Links To Code access Secuirty....http://www.codeproject.com/dotnet/UB_CAS_NET.asp Nice article..
      -- Thanks and Regards, Amit Agarwal Software Programmer(.NET) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system...
    4. Code to validate external links?
      Does anyone know of a simple script for validating a list of external links? There are portal packages out there which do this, but I just want...
    5. Question on targeting links in MX
      I have created a menu with MX that basically has buttons that link to html files. The files all open in a certain frame called mainFrame. Here is...
  3. #2

    Default Re: code question--links

    > <u
    >
    onclick="MM_openBrWindow('request.htm','winRequest ','scrollbars=yes,width=85
    > 0,height=500')">Click
    > to Fill out the Request Form</u>
    Ouch. That's horrible.

    A link is a link. There is a perfectly good tag for that: <a>
    > I am not sure what the <u> tag is
    Underline. Another awful tag.
    > but is this way of linking preferable to
    > the <a href> way?
    Absolutely not.
    > What possible reasons could this webmaster have had for
    > doing it this way?
    Ignorance? Stupidity? Spite? Doesn't like people that use text browsers? Or
    who use screen readers? Or whoe don't surf with javascript turned on?

    -Darrel


    darrel Guest

  4. #3

    Default Re: code question--links

    "middletree" <middletree@verywarmmail.com> wrote in message
    news:bfhmga$hg4$1@forums.macromedia.com...
    > I went to a site today which had some links which were very annoying
    because
    > the little hand didn't come up when you mouse over them, so you had no way
    > of knowing they were links, except the wording said "click here" or some
    > such thing. Anyway, clicking these links would bring up popup windows,
    and
    > the code for one such link looks like this:
    >
    > <u
    >
    onclick="MM_openBrWindow('request.htm','winRequest ','scrollbars=yes,width=85
    > 0,height=500')">Click
    > to Fill out the Request Form</u>
    >
    > I am not sure what the <u> tag is, but is this way of linking preferable
    to
    > the <a href> way? What possible reasons could this webmaster have had for
    > doing it this way?
    >
    The <u> tag is the deprecated Underline tag (removed from HTML 4.0; you're
    supposed to use text-decoration:underline in your style sheet, instead).

    The real work is done by the onclick action. I don't believe it will work if
    javascript is turned off, and accessibility is going to be compromised for
    users with alternative browsers such as Lynx and Jaws. The call gives the
    user more control over the size and format of the pop-up window, which is
    probably why the developer did it that way.

    HTH,

    Pete.


    Peter Connolly Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139