Questions tagged [href]
Hyperlink (or link) is a reference to a document that the reader can directly follow, or that is followed automatically.
5,038
questions
0
votes
0
answers
17
views
Some anchor href tags always work, some only work part time [closed]
I have a Python 3.11 script that reads several files, scans them for anchor id points, and then re-scans the files, replaces references to the id points with hrefs to them, and finally outputs a ...
0
votes
0
answers
20
views
Link doesnt show [closed]
I'm a beginner of using HTML so I follow a codecamp youtube video of using HTML in visual studio code.
Apperantely on my web server I'm trying to use a link whitin an abbrevation. It looks like this:
&...
-1
votes
0
answers
12
views
How I can inject html link in the Dom by JS
I had some module in the html,But the link doesn't work now, so I need to make injection into Dom HTML by JS.
(Example)
...
<a class="link" href="ABC.com"
...
And put the script ...
0
votes
0
answers
36
views
Can svg blobs contain hrefs?
I am building a website that displays content from a server (text, images, html, pdf, etc..). As the client does not know ahead of time what the content type is, it downloads the content, checks the ...
0
votes
0
answers
22
views
I keep getting 'None' when getting href links from HTML using Python
So I'm currently trying to build a function that retrieves the href links for each tag, but when I print my function, it returns none instead of the links.
I used:
import requests
from bs4 import ...
0
votes
1
answer
25
views
django URL in a TextField with HTML
In my Django e-commerce project, I have an obvious Product model with an expected description field:
description = models.TextField(...)
I have the following url configured:
path("product/slug:...
-4
votes
0
answers
19
views
Hi I have written this ref component.html tab but when I use it in the page it is not working properly here is my code
<button mat-button [matMenuTriggerFor]="help">Open Menu</button>
<mat-menu #help="matMenu">
<a mat-menu-item href="https://cimsolutions.sharepoint.com/:...
0
votes
1
answer
26
views
a reference problem with tag <a> reference element by id #element
Please help with this,
I have a tag in my HTML document with an Id:
the tag with id
The problem is, when i use a call by reference the screen doesn't move. The call by reference:
I try in two way, ...
-3
votes
0
answers
17
views
How to dynamically change href link of single product image in WooCommerce plugin?
I have a books-selling website. I am using WooCommerce plugin there with wordpress. I use single image per product. I want to use a href link specific to that product image, through which I can refer ...
0
votes
0
answers
11
views
Change the hardcoded URL in href statement in Wordpress theme
I have the following code in the "Mobile Repair Shop Pro" theme from LogicalThemes.
<div class="contan-part">
::before
<p> Click the Read More button to see the ...
0
votes
1
answer
16
views
How and why could a link (or A tag) HREF with a protocol defined redirect locally?
<a href="https://linkedin.com/company/NAME/" target="_blank">Join Us on LinkedIn</a>
Above is my link from dev tools with the company name swapped out.
As you can ...
0
votes
1
answer
40
views
HTML <A href> link to another html doesn't work
I'm trying to link to another html in the same folder, but it doesn't work. The bottom ones with id="diaweiter" and id="diazurueck" work, but the upper ones don't and I can't ...
-1
votes
0
answers
30
views
Script to add a box with a clickable link
Can someone tell how to make a Violentmonkey/Greasemonkey compatible script, that adds a box to a webpage, that has a text and a clickable link inside?
Example case to work with:
How to make a box to ...
0
votes
1
answer
28
views
asp.net Using a Base href tag is causing my code file to not be found
I have an old asp.net webform that is using master pages. About a month ago I placed a base href tag in the master page to help resolve some link issues I was having.
<head runat="server"&...
1
vote
1
answer
23
views
add target="_blank" to a link using WP_Admin_Bar::add_node() in Wordpress
I coded this custom widget for the admin-bar of a Wordpress install i'm working on:
function custom_admin_bar_link_1($wp_admin_bar) {
$args = array(
'id' => 'cal-cloudflare',
'title' => '...
0
votes
2
answers
66
views
How to pass a function to href in which I create a dynamic href?
I want to pass a function to href in my a tag link but no matter what I try it doesn't work. it either leads to a 404 page or is not even clickable. What am I doing wrong?
this is not clickable
<...
1
vote
1
answer
34
views
Webscrape URL link when there's no href? With BeautifulSoup
I'm trying to scrape each Product's Brand, Name, Image URL from: https://www.mecca.com.au/skin-care/
I'm having trouble scraping the Image URL as there's no href
For example one of the product's page: ...
0
votes
0
answers
21
views
How do I create a list object of scraped hrefs from a webpage?
This code prints the list I am looking to assign to a list object:
from bs4 import BeautifulSoup
import requests
import urllib.request
webUrl = urllib.request.urlopen('http://www.ufcstats.com/...
0
votes
1
answer
41
views
<a> that does not have an href, cannot click or get info
I'm trying to use Python/Selenium to iterate through and extract calendar appointment information from a website.
On the web page, clicking this makes a flyout appear with calendar appointment ...
1
vote
3
answers
40
views
Link/href/url attached to my image is not working
I'm simply trying to make the images clickable so that when a user clicks on the image, it will bring them to another page. I'm almost 100% positive I have the correct code to do so, but it is not ...
-2
votes
2
answers
59
views
HTML anchor tag does not work without http or https for external address
I have the following anchor tag.
<a href="www.google.com">Google</a>
When I click on the above link the URL will get mydomain.com/www.google.com
I have to say When I set href ...
0
votes
0
answers
18
views
Angular 14 multiple link icon request when appending fragment html to document.head
Angular 14.0.1
Nx 14.7
The case is:
I want to build link href dynamically when app starts, as it depends on the dynamic config.
Whenever I append or modify link href in the head, request for the used ...
0
votes
1
answer
18
views
Can you use the path from Copy Link to Highlight to focus on a certain element of a page but without that element being highlighted?
I am using "copy link to highlight" in my href to to focus on a certain element, but I don't want that element to be highlighted.
I am working in next.js. When a user clicks a link, I want ...
-2
votes
1
answer
78
views
How do I get "href" value of an "a" tag using scaper in Rust?
I have a Rust project that used the "scraper" library.
I want to get the href value of an a tag element from a website.
It is not shown in the documentation how to do it.
I tried the below ...
0
votes
1
answer
56
views
Get href with Selenium in Python
This image represents the web page from which I am trying to extract the hrefs, hiddens under the details button.
On the right hand side you can see the inspection of the web page
I am using Selenium ...
0
votes
1
answer
19
views
I can't use the href on my page, it gives a 404 error
It's giving this error
After clicking this
My code is like this:
import './header.css';
import { FaHeart } from 'react-icons/fa';
import Link from 'next/link';
export default function Header() {
...
0
votes
2
answers
70
views
How to make text in a table data cell a clickable link to a callback function?
I am trying to make the text in a td element be a clickable link which calls a callback function which will then open a read-only details window. I want the text to look like a link so the user knows ...
2
votes
1
answer
58
views
In chrome, mouseenter event fires on <use> element when event defined on target, other events don't fire
I have a situation where an element A inside embeded SVG has a mouseenter and mouseleave events defined. There is a separate <use> element referring to A. For some reason, in Chrome (and other ...
0
votes
0
answers
29
views
Can you specify that a link opens in a browser rather than its related app?
I have a Facebook link on my site that I'd prefer to open in the phone's browser rather than the Facebook app. Is this possible?
Thank you.
0
votes
0
answers
44
views
Svelte + Tailwind weird scroll behavior
I'm working on a restaurant menu proyect using svelte + tailwind, as i'm finishing with details adding some scroll margin so the target id is not behind the sticky nav. I noticed a weird behavior on ...
0
votes
0
answers
34
views
Google Tag Manager - Click Element - CSS Selector - Trying to use an "href" as the trigger
overview debug mode of available variables
1st Phone Number // href="tel:2293042344"
2nd Phone Number // href="tel:8885142344"
I'm hoping someone can shed some light on a little ...
0
votes
1
answer
13
views
How to fix multiple anchors leading to the same link error in Django?
Both of the anchors links to the href that leads to the stack overflow page. For reference, (in case this is a confounding variable), I'm using the django environment if that means anything.
<...
0
votes
1
answer
23
views
How can I pass on information using in href?
I'm using Session to pass on the object of the current user to the different aspx pages.
I have a home page, in which there are not any buttons, I'm only using href.
Is there a way to pass on the user ...
1
vote
2
answers
37
views
How to get the hyperlink in a tag using javascript?
Here I have an html with javascript:
document.addEventListener('mousedown', function(event) {
let elem = event.target;
let jsonObject = {
Key: 'mousedown',
Value: event.button
};
...
0
votes
0
answers
96
views
Change HTML div element wordpress
I'm building a website in wordpress. I'm using 'buttons' with padding and an image background for some categories on the homepage.
Right now only the button is clickable. I would like the whole div (...
0
votes
0
answers
6
views
Hi I am new in XSLT looking for solution to get value of image @href in multiple files in multiple dir i need to traverse till @fileref using xslt
Input.xml:
file1: root/section1/file1.xml
<p outputclass="text-center">
<image id="arrangement_flow"
placement="inline"
...
0
votes
1
answer
51
views
How can I navigate and extract restaurant details from zaubee.com when the href attribute is set to "#" for each restaurant link?
How can I scrape the zaubee.com website to extract business details from each restaurant's page when the href attribute is set to "#" in scrapy??
I'm presently working on a web scraping ...
0
votes
1
answer
25
views
Scroll link same page
I have named a div id for example: div id="page1" and at the same page i have a link like: a href="#page1"
But my navigation menu is always on top so it hides under the menu on ...
0
votes
4
answers
54
views
Why is this one paragraph link showing up funky?
I am attaching some code in here, I have recently added in a link to my portfolio website and the paragraph link is doing something weird, it seems to be aligning funky and I'm not sure what the issue ...
-1
votes
1
answer
35
views
W3 accessibility issue with **a href= ** linking to a .jpg
I have a thumbnail image that after clicking on it, opens up an enlarged version. The code is based on this page:
enter image description here
But when I test this page for accessibility issues on ...
0
votes
2
answers
63
views
How to click a href link using selenium in Python?
I use Selenium in Python to login on a portal. Once on the portal, I want to click a button to view a report. In the HTML code, the button is a href link:
<a href="Transactions.aspx">
...
0
votes
1
answer
53
views
How to make the href link to open in the new right hand-side direction tab in React.js
The href is not opening in the new tab/windows at the right hand-side tab, however is opening at the left hand-side tab
import resume from "../files/resume.pdf"
{/* ...
0
votes
2
answers
260
views
Passing a variable to href in HTML
I want the 'id' variable between 'Contact' and 'view', how should i do it to make it accessible dynamically?
Any simple solution that works?
var id = 0x323214343;
<a href="https://develop....
0
votes
1
answer
138
views
Bootstrap-5 fixed-top navbar with internal links doesn't scroll right
I'm trying to use Bootstrap 5's navbar with fixed-top, where all the nav-items are references to anchors on the page. When I click on links that are below the current position, it goes to the right ...
0
votes
0
answers
61
views
all the href link in my html page go to the same folder if I add javascript in the html project
This is my folder:
The problem is the javascript file, all the href in all html file is correct but if I add script.js at the pages when I click on the subs menu of the javascript's dropdown menu all ...
0
votes
1
answer
87
views
href tag redirect to page and OnGet is called twice but the second time with wrong value
So this is my a tag:
<a href="/Text/@text.Id" class="btn btn-dark">Lire</a>
This is my OnGet method who is called twice:
public async Task<IActionResult> OnGet(...
0
votes
0
answers
53
views
MySQL CONCAT href - greater/less than signs showing as > < in HTML code instead of > <
I'm trying to create a hyperlinked field in a MySQL SELECT using CONCAT, but the value is not showing as a hyperlink, but as the literal href statement on the page. The HTML being displayed on the ...
3
votes
2
answers
75
views
How to change href using javascript function?
I have a button, that when a user clicks on it, The page will be redirected to another link.
Index.html:
<input
type="text"
placeholder="Search"
id="input-box"
...
0
votes
0
answers
22
views
how to get back index.html page from a second html page using python3 and flask?
I have a basic python3 script in a main folder:
from flask import Flask,render_template
app=Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
app.run(debug=True)
A ...
2
votes
1
answer
86
views
Axios get html and a href change to localhost instead of original path
I strungle with this, in resume I'm using axios to get a directory content of a remote server in other network. The path of the directory in that server is :
my front response.data is like this:
I'm ...