Questions tagged [href]

Hyperlink (or link) is a reference to a document that the reader can directly follow, or that is followed automatically.

Hyperlink (or link) is a reference to a document that the reader can directly follow, or that is followed automatically.

A hyperlink points to a whole document or to a specific element within a document. Hypertext is text with hyperlinks. A software system for viewing and creating hypertext is a hypertext system, and to create a hyperlink is to hyperlink (or simply to link). A user following hyperlinks is said to navigate or browse the hypertext.

A hyperlink has an anchor, which is the location within a document from which the hyperlink can be followed; the document containing a hyperlink is known as its source document. The target of a hyperlink is the document, or location within a document, to which the hyperlink leads. Users can activate and follow the link when its anchor is shown, usually by touching or clicking on the anchor with a pointing device. Following the link has the effect of displaying its target, often with its context.

Links are specified in HTML using the (anchor) elements. To see the HTML used to create a page, most browsers offer a "view page source" option. Included in the HTML code will be an expression in the form symbol "," marking the start of an anchor, followed by the highlighted text and the "" symbol, which indicates the end of the source anchor. The element can also be used to indicate the target of a link.

http://en.wikipedia.org/wiki/Hyperlink

5033 questions
1
vote
3 answers

HTML TAG pass variable both with href and onclick

I want when someone clicks this link to go first on myfunction that I have in JS and after that follow the href function that exists in tag. The problem is that it follows first the href and I can't pass the variable I want from the js…
Johnny
  • 39
  • 1
  • 8
1
vote
1 answer

How to embed URL inside text in html?

I have this simple code in an sql stored procedure: Declare @EmailBody varchar(MAX), @MyURL varchar(2000); SET @MyURL ='www.google.com'; SET @EmailBody = 'Please go here: '; Now, the EmailBody contains: "Please go here:…
user2948533
  • 1,143
  • 3
  • 13
  • 32
1
vote
0 answers

Using an href tag in Exception message- JSP

This Exception is going in Error.jsp . The message is correctly going into this page, but the part of here does not appear. What is the problem? <% if (x== 5) { throw new Exception("For login press here "); } …
Mary
  • 43
  • 4
1
vote
1 answer

The element label must not appear as a descendant of the a element

Everthing seems to work fine, but when I validate my xml I get an error The element label must not appear as a descendant of the a element. Something similar was already asked here, but that did squat for me. If I put the label out of a then only…
jabk
  • 1,388
  • 4
  • 25
  • 43
1
vote
3 answers

How can I make randomly generated result (javascript) be a hyperlink?

I've made a random brand generator where you click a button and it returns a brand. I'd like it if each of the brand names that were generated, when clicked, opened the brands website in a new tab. I'm not sure if this is possible, and if it is,…
Chloe Cordon
  • 15
  • 1
  • 4
1
vote
1 answer

Selecting specific links from large list

I am new to javascript/jquery: If i have a lot of links - how can i select specific ones. For example if i have 1000 links, each consisting of hrefs and link text - and i want to select 5 specific links, what is the easiest way to do this ? My…
TABISH KHAN
  • 1,553
  • 1
  • 19
  • 32
1
vote
2 answers

Change/Replace Href parameter with jquery

I have a URL parameter that I want to replace based on whether a checkbox has been checked: I accept
Moxie C
  • 442
  • 1
  • 15
  • 32
1
vote
2 answers

Liferay and to a friendly URL

I have created a page with a friendly URL of /balance-inquiries. The full URL given within the Liferay Admin's Site Pages page is http://localhost:8080/group/guest/balance-inquiries. Creating a renderUrl (or an actionUrl) to this page, from another…
Randy Leonard
  • 655
  • 7
  • 21
1
vote
1 answer

How to get number from link using xpath

I am using this to get the number or all the href: //chrome $x("(//ul[@class='pagination']//li/a[contains(.,'Seguinte')]/@href)"); The page has this:
1
vote
1 answer

Include external css/js file into html page

I'm trying to link manually my CSS and Javascript files to my HTML scripts, but I've never really done it with files from a different folder/directory. This is what I have so far:
Phil C.
  • 114
  • 1
  • 12
1
vote
3 answers

automatic convert word to link in PHP

I want write a simple code that convert special words to special link (for wiki plugin), if it's not a link! For example suppose we have a text "Hello! How are you?!" and we want convert are to are, but if we have
shozdeh
  • 172
  • 1
  • 11
1
vote
1 answer

Remove dotted line under button

I have a image button in my nav bar but I'd really like to remove the dotted line under the link. The left arrow is the button which contains the link and as you can see under it tis dotted line appears. This is the code for adding the navbar and…
Kevin
  • 1,435
  • 4
  • 19
  • 27
1
vote
1 answer

How to get href elements and attributes for each node?

I am working on a project that should read html, and find find all nodes that match a value, then find elements and attributes of the located nodes. I am having difficulty figuring out how to get the href attributes and elements though. I am using…
Fuzz Evans
  • 2,893
  • 11
  • 44
  • 63
1
vote
1 answer

Regex for broken links with whitespaces

i am using this Regex private static final String HREF_PATTERN = "\\s*(?i)href\\s*=\\s*(\"([^\"]*\")|'[^']*'|([^'\">\\s]+))"; to get the link from The URL is malformed. It contains a whitespace. The…
gRds
  • 164
  • 1
  • 2
  • 7
1
vote
2 answers

jqTouch css and a href link

I am trying to call a link from a page which points to another part of the page. This is the code I am using to do this: Pic1 The problem is that when I remove the css stylesheet links from…
C..
  • 6,897
  • 10
  • 30
  • 37
1 2 3
99
100