When is the ‘javascript:’ prefix valid syntax?

Outside of the href attribute (where it is a protocol specifier), name: just creates a label (such as one might use with a continue or break).

See: Do you ever need to specify javascript: in an onclick?

Leave a Comment