Questions tagged [href]
Hyperlink (or link) is a reference to a document that the reader can directly follow, or that is followed automatically.
4,878
questions
1
vote
2
answers
25
views
Iterate through an html structure and find a specific href in an a
does anyone how how to iterate though a structure and look for a specific href using cypress??
Example code:
<div class="navigation_outer">
<div class="navigation">
...
0
votes
1
answer
57
views
How can I add a class to an anchor in a list item? [duplicate]
I am building a website in Wordpress and need to add a class to the anchor element that is inside a list item. The list item has a unique ID. The class I need to add will give me smooth scrolling on ...
0
votes
0
answers
11
views
Location.href works strangely. Why?
I want to implement the function of moving to the corresponding link when I press each td. The link is stored in the Json file. However, when I checked this code with live server, I found that it ...
0
votes
0
answers
7
views
directory of files in an iFrame: get url of file clicked
In an iFrame (same origin), I'm displaying a list of file-links, like this:
<iframe src="my_public_folder_of_files/"></iframe>
Then, in my javascript, I'm trying to listen for ...
0
votes
0
answers
14
views
Could I verify network credential in html href link?
Suppose 10.10.10.10/sharedFolder is shared folder path.
If I access this path on 'file browser', I get faced "network credential" to enter ID/PW for validation.
And if I get validated, I ...
-2
votes
0
answers
24
views
I Can't access the shared folder in browser (beacuse of network credential I guess)
Let's suppose that 10.10.10.10/sharedFolder is our shared folder (not my local)
and I get the permission to access that folder
I can access that path in 'windows explorer' after I enter the username/...
0
votes
0
answers
13
views
eml file url click when preview open in outlook in angular js
<link-primary *ngIf="contactmoment?.emlReference"
[ariaLabel]="(contactmoment.emlReference?.path | filenameFromUri) + '
downloaden'"
[downloadFilename]="contactmoment....
0
votes
1
answer
21
views
Why on my react web the anchors of social media does not works propertly , and a misterious details it works just when user reload the page?
When user click, it does not open nothing and once reload the browser the
anchor open the url social media and all is fine until user navigate to other
page and come back again to Contact ...
0
votes
1
answer
39
views
How do you select a particular object from a django model and use it to retrieve a url? (CS50 Project 2)
I am doing CS50 Project 2 and have a django model called Listing that has an object called Category that the user can pick using a dropdown list. All the categories are listed on the categories page ...
-1
votes
2
answers
28
views
Can't get thymeleaf parameter in href from model attribute
I'm new to thymeleaf.
I can't get systemId in th:href ,but I can do it in <p th:text...
What's the problem? Pls, help
My code
Result
-1
votes
0
answers
32
views
React onClick a links not working how do I make them work?
Im trying to create links in my homepage to my other pages that do not use Router. My links work in the app but when Ive transferred them to the homepage and they're not working. The error says I need ...
0
votes
1
answer
25
views
Angular routerLink with automatic href
In my Angular application I have a lot of buttons which navigate to a different location (navigation bar, etc.). As I have a single-page application (SPA) this is of course simulated by Angular.
...
0
votes
1
answer
41
views
location.href is not working, can't acess to link location
I've created a "loading page" which should be the first page that users see when they connect. It's a simple page with a central bouton that people have to click. Once they do, they access ...
0
votes
0
answers
23
views
Updating href does not change where the link takes me
I am building a chrome extension to update all of the hrefs in a page to call a phone number (phone_number) instead of link to a page (/phone/phone_number) with the phone number listed again... I'm ...
2
votes
0
answers
42
views
How to display Special characteres in xslt href attribute
i want to display a link in xslt table that contient frensh special charactres:
the link is dynamic composed from : https://website.com/sites/the_name_of_attachment_in_xml
the xslt link:
<a><...
0
votes
0
answers
18
views
javascript if (.href="myimage.png") { tekstEL.innerHTML = "This is a red car that costs " + price;}
I can't manage to make an if function that prints according to what picture is being shown. I have two buttons that can change a picture, but I want the function to print something unique to the ...
0
votes
0
answers
4
views
Joomla 4 - All links in href do not have the primary domain
Joomla has the characteristic of expressing all links in a reduced way in the href attribute.
For example, now on joomla 4 all links are written like this:
<a href="/page-test"></a&...
-1
votes
1
answer
28
views
How to click on nested href link using selenium python
Hi I'm fairly new to python and selenium and am having trouble accessing this href link. I was trying to access a href link by XPATH and am having trouble. My previous attempts at accessing an element ...
0
votes
1
answer
26
views
Find a specific word in text, and add link(Vuejs)
In res.data.tweets i am fetching tweets from server and storing values for every tweet in tweetData obj. In tweet_text, i would like to add a link to the tagged twitter users(clickin on tag will ...
0
votes
0
answers
9
views
Href mailto in greek and bulgarian languages does not work on windows clients
I'm developing an app (plain html, javascript and css) which allows user to click button and send an email with predefined recipients, subject and body. Everything works fine until user select greek ...
0
votes
1
answer
18
views
Extract href tag using Rselenium
I am trying to get the store address of apple stores for multiple countries using Rselenium.
library(RSelenium)
library(tidyverse)
library(netstat)
# start the server
rs_driver_object <- rsDriver(...
-2
votes
0
answers
41
views
Trying to make a link out of an empty div
I was given a background image to code on that already had text in it for the login form. I had to create transparent buttons that linked to where the clients wanted to, so that the text beneath them ...
0
votes
2
answers
31
views
get attribute href returns generic link selenium python
I want to get a href link, it should be something like the link here
<a href="https://www.allmusic.com/album/a-link-in-the-chain-mw0000072661">A Link in the Chain</a>
instead I ...
0
votes
0
answers
18
views
Woocommerce add to cart with variabe input quantity
I'm creating a simple button to add to cart (woocommerce) a specific number (quantity) of products without refreshing the page.
Using the following href link I can add 1 unit of my product to basket ...
0
votes
0
answers
21
views
Bypass URL Token
I want go to this link using a href, but the trouble is token is autoincrement
http://127.0.0.1:8080/dipo/maintenance/apply?imwToken=8gdny7ih839ukig
how to bypass the token?
-1
votes
0
answers
35
views
Using HTML only, How Can I Fire A Webhook URL Without Leaving The Current Page Or Opening A New Window
I'm using a custom content block in Wordpress that only allows HTML.
I want to create a link, that fires a zapier webhook URL. The user should not be taken to a new page and the link should not open ...
0
votes
1
answer
30
views
How to get the href value out of a list of webelements with Selenium and Java
I want to get the link attribute from the below list of elements, Its returning null when executing
<div class="ui-lib-sidebar-grid__content">
<div class="ui-lib-margin-...
1
vote
0
answers
71
views
HTML anchor tag's download attribute's optional new filename for the downloaded file is not working
I have written the following HTML code
<!DOCTYPE html>
<html>
<body>
<a href="../../../media/jupiter" download="big_planet"> Click here to ...
1
vote
1
answer
31
views
Extracting multiple text using partial href information
I'm trying to extract multiple genre from below site. (I already know the URLs)
https://www.discogs.com/master/1515454-Zedd-Katy-Perry-365
<div class="profile">
<h1 id="profile_title" ...
0
votes
5
answers
43
views
How do I get the links to work in my navigation bar?
So I've been tinkering with HTML and CSS for a little bit (please excuse my presentation) and I've been trying to get a fixed navbar working with inpage links that go the different sections within my ...
0
votes
2
answers
30
views
passing variable value to href argument
I'm sure this is an easy one but I'm really stuck here..
This is the code
<td id="id"></td>
<td id="sku">&...
0
votes
2
answers
48
views
How to get the value of the href attibute from element without having an explicit href attribute using Python/Selenium
I'm trying to get the URL link from an element with get_attribute('href') mode. However it returns null, like it didn't have href.
webdriver.find_element_by_xpath('//*[@id="__next"]/main/div[...
0
votes
0
answers
14
views
Is it possible to link url with a tag using not 'href' but 'data-link' attribute? [duplicate]
I thought I can only use 'href' attribute to link url in a tag but I found the following example.
<a data-link="https://stackoverflow.com/" style="cursor: pointer" class="...
0
votes
0
answers
48
views
VB.Net download file with href="#"
I'd like to download a file via VB.NET.
The problem is that I don't have an explicit link to that file. Inspection of the browser element brings up:
<a href="#" title="//SOMEADRESS....
0
votes
3
answers
48
views
Unable to retrieve the href attributes using Python and Selenium
I'm very new to this and have spent hours trying various methods I've read here. Apologies if I'm making some silly mistake
I want to create a database of my LEGO sets. Pulling images and info from ...
1
vote
1
answer
32
views
HTML Selenium Python click on href link
I would like to write a python code where he clicks on the href link.
Screenshot of HTML:
This is what I am currently having in Python, but it does not work.
tables = browser.find_elements_by_xpath('/...
-1
votes
1
answer
34
views
Python Selenium - href Attribute outputs a false link
Im using Selenium to extract a href elements under div class elements from comments on Facebook posts.
To do that im using https://m. and not https://www.
The weird thing is that the code is working ...
1
vote
2
answers
39
views
Route with ID from div
How do you correctly route in Laravel when on click and pass the ID along?
I have a using vue that prints out every element of an array.
Like this:
<div v-for="album in albums" :key=&...
0
votes
0
answers
104
views
Using R Shiny brochure with shinydashboard and bs4Dash
I am trying to build an R Shiny dashboard using the packages {brochure} and {bs4Dash}. Colin Fay's example code from his {brochure} package works when using it with {shinydashboard}, but it does not ...
1
vote
1
answer
30
views
How to extract href attribute of an element in html with Selenium in Ptyhon
I need a make a list of URLs of pictures(after that I will download it ) I do not know how to extract elements from class and from elements extract a URLs
driver.get("https://pixabay.com/en/...
0
votes
1
answer
103
views
SQL Query Replace Text column as Hyperlink <a href="">
I have a table Products
ID | Productname | Product_url |
+----+-----------+--------------------------------------+
| 1 | ShirtXS | txthttps://www.product.com/shirt-xs |
| ...
0
votes
0
answers
14
views
Problem with zoom after pressing back after redirect
I have a problem with my site. I have a href and if you press on it, you will be redirected to another page on my site. It works fine, however when I press back and try to zoom the page in and out it ...
0
votes
0
answers
23
views
Correct React syntax for using dynamic href mailto: and tel: links
Im trying to figure out the correct syntax for using both dynamic mailto: link as well as a tel: link in a React project I'm working on. I believe I've got the 'mailto:' working, but am struggling ...
1
vote
0
answers
78
views
MVC Url.Action Href onclick Confirmation not preventing redirect
Problem: The onclick="return confirm('Are you sure?')" HTML Attribute in my Href always deletes tag regardless of choice selected by user.
Below is a snippet of my DeleteTag.cshtml file. I ...
0
votes
0
answers
5
views
SwiftSoup: removeAttr having no effect when getting body of document
I am removing href attribute and adding it again with a different link.
try document?.select(className).first()?.select(linkClassName).removeAttr("href")
try document?.select(...
1
vote
0
answers
29
views
Django - Href not redirecting user but being loaded locally
I am creating a simple application in Django. I have an <a> element, and when the user clicks on it, I want to be able to redirect them to a new page (classes.html).
I used href="{% url '...
-1
votes
2
answers
53
views
Cannot getting the "href" attributes via BeautifulSoup
in short, i can't get the links of "href" attribute from this link (a turkish online book and related stuff seller).
here's my code (i know it's not the best, i'm learning python for a few ...
0
votes
1
answer
24
views
Changing background size of an a href link
How do you change an a href link background size? Like for example, you make an a href, then you put a background color on it. But the background color is thin. How do you make it bigger?
0
votes
1
answer
21
views
how to send two parameters in <anchor > href for downloading file?
Ex: i try to send single parameter , now i need to send two parameter with request body
so how to achieve this or "how to send filepath via request body to servlet"
out.println(" <a ...
0
votes
1
answer
31
views
Django pagination and current page with other value currency name button "USD" or "EUR"
I try to pass 2 values in my Django crypto currency project page_number and currency for example USD.
Page Load Crypto currencies with defalut converter to price in USD
User have possibility to ...