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
377
votes
8 answers

How to make button look like a link?

I need to make a button look like a link using CSS. The changes are done but when I click on it, it shows as if it's pushed as in a button. Any idea how to remove that, so that the button works as a link even when clicked?
Pooja Jain
350
votes
14 answers

How to convert an address into a Google Maps Link (NOT MAP)

After looking (Googling) on the web for a while, I can find nothing that takes an address like: 1200 Pennsylvania Ave SE, Washington, District of Columbia, 20003 and converts it into a clickable…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
347
votes
23 answers

How do I convert a column of text URLs into active hyperlinks in Excel?

I have a column in excel, wherein I have all the website url values. My question is I want to turn the url values to active links. There are about 200 entries in that column with different urls in all cells. Is there a way I can create active…
developer
  • 5,178
  • 11
  • 47
  • 72
307
votes
18 answers

jQuery disable a link

Anyone know how to disable a link in jquery WITHOUT using return false;? Specifically, what I'm trying to do is disable the link of an item, performing a click on it using jquery which triggers some stuff, then re-enabling that link so that if it's…
davebowker
  • 4,475
  • 7
  • 27
  • 32
306
votes
7 answers

Need to remove href values when printing in Chrome

I'm attempting to customize the print CSS, and finding that it prints links out with the href value as well as the link. This is in Chrome. For this HTML: Google It prints: Google (http://www.google.com) And I…
Chris Gratigny
  • 3,223
  • 2
  • 16
  • 7
299
votes
35 answers

Create tap-able "links" in the NSAttributedString of a UILabel?

Many applications have text and in this text are web hyperlinks in rounded rect. When I click them UIWebView opens. What puzzles me is that they often have custom links, for example if words starts with # it is also clickable and the application…
Lope
  • 5,388
  • 4
  • 30
  • 40
264
votes
6 answers

How can I get the Google cache age of any URL or web page?

In my project I need the Google cache age to be added as important information. I tried to search sources for the Google cache age, that is, the number of days since Google last re-indexed the page listed. Where can I get the Google cache age?
Tokendra Kumar Sahu
  • 3,524
  • 11
  • 28
  • 29
258
votes
9 answers

Is an anchor tag without the href attribute safe?

Is it okay to use an anchor tag without including the href attribute, and instead using a JavaScript click event handler? So I would omit the href completely, not even have it empty (href="").
john
  • 2,613
  • 2
  • 17
  • 7
240
votes
6 answers

How to create hyperlink to call phone number on mobile devices?

What is the proper, universal format for creating a clickable hyperlink for users on mobile devices to call a phone number? Area code with dashes 555-555-1212 Area code with no dashes
MultiDev
  • 10,389
  • 24
  • 81
  • 148
239
votes
6 answers

C# XML Documentation Website Link

Is it possible to include a link to a website in the XML documentation? For example, my method's summarized as /// /// This is a math function I found HERE. /// public void SomeMathThing(Double[] doubleArray) { ... } and when…
john
  • 4,043
  • 7
  • 27
  • 39
238
votes
24 answers

Link to reload current page

Is it possible to have a normal link pointing to the current location? I have currently found 2 solutions, but one of them includes JavaScript and in the other you have to know the absolute path to the page:
Tyilo
  • 28,998
  • 40
  • 113
  • 198
234
votes
23 answers

How can I make a clickable link in an NSAttributedString?

It's trivial to make hyperlinks clickable in a UITextView. You just set the "detect links" checkbox on the view in IB, and it detects HTTP links and turns them into hyperlinks. However, that still means that what the user sees is the "raw" link.…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
207
votes
12 answers

How do I programmatically click a link with javascript?

Is there a way to click on a link on my page using JavaScript?
Jason Kolok
192
votes
6 answers

Github Markdown Same Page Link

Let's say I have two points within the same git hub wiki page, which for this we'll call place 1 and place 2. ##Title ###Place 1 Hello, this is some text to fill in this, [here](place2), is a link to the second place. ###Place 2 Place one has…
Alexander Craggs
  • 7,874
  • 4
  • 24
  • 46