Questions tagged [hyperlink]

A hyperlink is a reference to a document (or a section) that can be followed for retrieval using a navigation system that allows selecting emphasized content within an originating document.

A hyperlink is a reference to a document (or a section) that can be followed for retrieval using a navigation system that allows selecting emphasized content within an originating document. Hyperlinks are typically referred to as simply "links".

In HTML documents, a hyperlink is defined by an a element and is followed by selecting it (usually with a mouse for a desktop computer, or tapping it with touch-screen displays).

Markup for embedding hyperlinks in documents can vary dramatically.

In HTML documents, a codified hyperlink resembles:

<a href="http://www.w3.org">W3C Homepage</a>

In LaTeX documents, a codified hyperlink resembles:

\href{http://www.w3.org}{W3C Homepage}

In Markdown, used on Stack Overflow, a hyperlink can be either an inline link:

[W3C Homepage](http://www.w3.org)

or a reference link:

[hyperlink][1]

where the actual destination is given by a link reference definition somewhere in the document:

[1]: http://en.wikipedia.org/wiki/Hyperlink
18617 questions
2635
votes
35 answers

How do I create an HTML button that acts like a link?

How do I create an HTML button that acts like a link? So that clicking the button redirects the user to a page. I want it to be accessible, and with minimal extra characters or parameters in the URL.
Andrew
  • 227,796
  • 193
  • 515
  • 708
1453
votes
13 answers

How to change the href attribute for a hyperlink using jQuery

How can you change the href attribute (link target) for a hyperlink using jQuery?
Brian Boatright
  • 36,294
  • 34
  • 81
  • 102
1301
votes
4 answers

Open link in new tab or window

Is it possible to open an a href link in a new tab instead of the same tab? Link
Rene
  • 13,299
  • 5
  • 19
  • 28
1150
votes
40 answers

How to make links in a TextView clickable

I have the following TextView defined:
Richard
  • 28,691
  • 8
  • 33
  • 34
1002
votes
3 answers

How to reference a method in javadoc?

How can I use the @link tag to link to a method? I want to change: /** * Returns the Baz object owned by the Bar object owned by Foo owned by this. * A convenience method, equivalent to getFoo().getBar().getBaz() * @return baz */ public Baz…
Jason S
  • 184,598
  • 164
  • 608
  • 970
900
votes
4 answers

Linking to an external URL in Javadoc?

Something like: /** * See {@linktourl http://google.com} */
ripper234
  • 222,824
  • 274
  • 634
  • 905
842
votes
15 answers

Should I make HTML Anchors with 'name' or 'id'?

When one wants to refer to some part of a webpage with the "http://example.com/#foo" method, should one use

Foo Title

or

Foo Title

They both work, but are they equal, or do they have semantic differences?
Henrik Paul
  • 66,919
  • 31
  • 85
  • 96
760
votes
24 answers

Can I create links with 'target="_blank"' in Markdown?

Is there a way to create a link in Markdown that opens in a new window? If not, what syntax do you recommend to do this? I'll add it to the markdown compiler I use. I think it should be an option.
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
711
votes
22 answers

Remove blue underline from link

I am attempting to have a link show up in white, without an underline. The text color shows up correctly as white, but the blue underline is stubbornly persisting. I tried text-decoration: none; and text-decoration: none !important; in the CSS to…
dmr
  • 21,811
  • 37
  • 100
  • 138
638
votes
30 answers

Smooth scrolling when clicking an anchor link

I have a couple of hyperlinks on my page. A FAQ that users will read when they visit my help section. Using Anchor links, I can make the page scroll towards the anchor and guide the users there. Is there a way to make that scrolling smooth? But…
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257
610
votes
12 answers

How to open link in a new tab in HTML?

I'm working on an HTML project, and I can't find out how to open a link in a new tab without JavaScript. I already know that opens the link in the same tab. Any ideas how to make it open in a new one?
ZenthyxProgramming
  • 6,283
  • 3
  • 16
  • 15
584
votes
23 answers

How to close current tab in a browser window?

I want to create a link on a webpage that would close the currently active tab in a browser without closing other tabs in the browser. When the user clicks the close link, an alert message should appear asking the user to confirm with two buttons,…
Naveed
  • 41,517
  • 32
  • 98
  • 131
540
votes
15 answers

Open URL in same window and in same tab

I want to open a link in the same window and in the same tab that contains the page with the link. When I try to open a link by using window.open, then it opens in new tab—not in the same tab in the same window.
user1065055
  • 5,471
  • 3
  • 15
  • 4
476
votes
9 answers

What is href="#" and why is it used?

On many websites I see links that have href="#". What does it mean? What is it used for?
Samir Ghobril
  • 4,953
  • 4
  • 18
  • 15
413
votes
14 answers

How to force link from iframe to be opened in the parent window

I need to open the link in the same parent page, instead of open it in a new page. note : The iframe and parent page are the same domain.
Haim Evgi
  • 123,187
  • 45
  • 217
  • 223
1
2 3
99 100