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?
More Related Contents:
- JavaScript Syntax error
- What’s the meaning of “=>” (an arrow formed from equals & greater than) in JavaScript?
- Add a property to a JavaScript object using a variable as the name?
- Location of parenthesis for auto-executing anonymous JavaScript functions?
- What do parentheses surrounding an object/function/class declaration mean? [duplicate]
- How does this JavaScript/jQuery syntax work: (function( window, undefined ) { })(window)?
- What does the leading semicolon in JavaScript libraries do?
- Why avoid increment (“++”) and decrement (“–“) operators in JavaScript?
- What does a tilde do when it precedes an expression?
- What does “options = options || {}” mean in Javascript? [duplicate]
- Why do results vary based on curly brace placement?
- How do I convert a float number to a whole number in JavaScript?
- Javascript: Get deep value from object by passing path to it as string [duplicate]
- Is && statement() the same as if() statement()?
- How can I concatenate regex literals in JavaScript?
- Javascript Property with three dots (…)
- Advanced JavaScript: Why is this function wrapped in parentheses? [duplicate]
- difference between dot notation and bracket notation in javascript [duplicate]
- Use of commas versus semicolons?
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Difference between var and this in Javascript functions?
- “elseif” syntax in JavaScript
- What is the decimal separator symbol in JavaScript?
- How can % signs be used in identifiers
- What is “?:” notation in JavaScript?
- Javascript while loop return value
- ES6+ javascript module export options
- Using a block’s return value in JavaScript
- Javascript history.PushState not working?
- + operator before expression in javascript: what does it do?