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
188
votes
5 answers

open link in new tab with github markdown using target="_blank"

Is there a way to let a Link, written in githubs markdown, open in a new tab? All posts I have found related to this suggests to use HTML and target="_blank", which is fine with me, but that doesn't work. For example this link:
Plaul
  • 7,191
  • 5
  • 19
  • 22
183
votes
16 answers

retrieve links from web page using python and BeautifulSoup

How can I retrieve the links of a webpage and copy the url address of the links using Python?
NepUS
  • 1,899
  • 2
  • 14
  • 9
182
votes
11 answers

Example using Hyperlink in WPF

I've seen several suggestions, that you can add hyperlink to WPF application through Hyperlink control. Here's how I'm trying to use it in my code:
Arsen Zahray
  • 24,367
  • 48
  • 131
  • 224
171
votes
19 answers

Wrapping a react-router Link in an html button

Using suggested method: This is the result: A link in the button, Code in between comment lines I was wondering if there is a way to wrap a Link element from 'react-router' in an HTML button tag using react. I currently have Link components to…
Jose Rivera
  • 1,821
  • 2
  • 12
  • 8
171
votes
9 answers

How link to any local file with markdown syntax?

I have a local markdown file containing several links and I want that links head to local file like pdf. I use the following syntax: [my link](file:///C:/my_file.pdf) But when I open my markdown file into a Firefox page and click on the link,…
Alexis Le Provost
  • 1,803
  • 2
  • 11
  • 9
169
votes
8 answers

How do I create a link using JavaScript?

I have a string for a title and a string for a link. I'm not sure how to put the two together to create a link on a page using JavaScript. Any help is appreciated. The reason I'm trying to figure this out is because I have an RSS feed and have a…
Xavier
  • 8,828
  • 13
  • 64
  • 98
157
votes
9 answers

How to submit a form with JavaScript by clicking a link?

Instead of a submit button I have a link:
submit
Can I make it submit the form when it is clicked?
sandy
  • 1,601
  • 2
  • 11
  • 4
156
votes
8 answers

Can Google Chrome open local links?

I am linking on an intranet page to a local file on a shared drive: Test This works in IE and Firefox with an addon called local link. How can I get this to open in Google Chrome?
Andy
  • 1,689
  • 2
  • 14
  • 11
154
votes
14 answers

Android TextView with Clickable Links: how to capture clicks?

I have a TextView which is rendering basic HTML, containing 2+ links. I need to capture clicks on the links and open the links -- in my own internal WebView (not in the default browser.) The most common method to handle link rendering seems to be…
Zane Claes
  • 14,732
  • 15
  • 74
  • 131
149
votes
7 answers

Use a normal link to submit a form

I want to submit a form. But I am not going the basic way of using a input button with submit type but a a link. The image below shows why. I am using image links to save/submit the form. Because I have standart css markup for image links I don't…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
145
votes
24 answers

How to pre-populate the sms body text via an html link

How to use an html link to open the sms app with a pre-filled body? Everything I have read seems to indicate that sms:18005555555?body=bodyTextHere Should work, but on the iPhone, this doesn't work. If I take out the ?body=bodyTextHere, and just use…
merlincam
  • 1,818
  • 3
  • 16
  • 16
144
votes
8 answers

What is `mt=8` in iTunes links for the App Store?

Does anyone know the significance of the mt parameter in App Store Links? Sample link: http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=337319445&mt=8 It seems that any value will work, like mt=0, mt=999, etc.
monkeyboy
  • 1,441
  • 2
  • 10
  • 3
143
votes
19 answers

How can I get clickable hyperlinks in AlertDialog from a string resource?

What I am trying to accomplish is to have clickable hyperlinks in the message text displayed by an AlertDialog. While the AlertDialog implementation happily underlines and colors any hyperlinks (defined using in the string resource…
137
votes
3 answers

How can I set the text of a WPF Hyperlink via data binding?

In WPF, I want to create a hyperlink that navigates to the details of an object, and I want the text of the hyperlink to be the name of the object. Right now, I have this:
rdeetz
  • 1,566
  • 2
  • 9
  • 8