All Questions
2,222 questions
0
votes
0
answers
20
views
landing on specific <input type="radio">tabs based on the clicked link
I am new to html, css and JS.
I want to click "Find out what Amy likes" on web_page_1, to the "pear" tab on web_page_2.
It seems i need to put a # anchor to the href of "Find ...
1
vote
2
answers
28
views
Return text error message when browser expecting a .XLS or other binary file
My Flask server generates an HTML file containing an anchor tag resembling this:
<a href="https://example.com/href_without_extension" download="excelfile.xls">
Download ...
-3
votes
2
answers
85
views
Having trouble setting <a href=""> on same page as <a id=""> so I can link from another page
I have a page with categories of PDF downloadable links. The categories are each named thus: <a ID="place_link_goes_to"> so they can be linked to from another page.
I assume I need to ...
0
votes
0
answers
40
views
CKEditor5 sanitizes HTML in a way that alters the structure of anchor tags
When sanitizing or normalizing HTML content in CKEditor5, the following HTML is altered.
Original HTML:
<a href="https://www.google.it" target="_blank">
<i class="...
0
votes
0
answers
41
views
anchor links and id combination for scrolling don't work for page reload and back and forward button of browser?
<a
href={getUrlHash(props.primaryCTA?.url)}
className="btn btn--primary"
target={props.primaryCTA?.target || ''}
aria-label={props.primaryCTA?.title || ''}
...
1
vote
2
answers
40
views
Anchor Links Reloading Page Instead of Scrolling – Purchased Template
I purchased an HTML template online to build a website for a client, but I'm running into an issue with anchor links. The anchor links are supposed to scroll to specific sections of the page, but ...
0
votes
0
answers
26
views
How to create a link to an anchor on the main page from an iframe embedded in the main page?
With HTML, how to create a link to an anchor on the main page from an iframe embedded in the main page?
The iframe is called and inserted and from the main page ( iframe is hosted in Github with a ...
1
vote
1
answer
95
views
How to avoid XSS issues when clicking HTML link to retrieve file from database and display it in new tab?
In the success callback of an AJAX request, I need to append a link to a modal. The link's href attribute points to an API route, which calls a Spring Boot controller method that writes the PDF file ...
1
vote
0
answers
59
views
New CSS Anchor Positioning API and `::selection` CSS pseudo-element: Using selection as anchor?
I am looking at the new CSS Anchor Positioning API. Can I use the CSS anchor positioning API to place a tooltip over the currently selected text?
I tried to achieve this with the ::selection CSS ...
0
votes
1
answer
66
views
How to : button/link that display specific slide in slider [Vanilla Javascript]
for a portfolio website purpose, I've created a (very simple) carousel.
Thing is :
I want my slider/carousel to be usable with a menu (in addition to Next and Prev buttons).
To be more precise, each ...
1
vote
1
answer
130
views
Jasmine test anchor element click without opening tab
In my Angular 17 application, I have some anchor element that has both an href for navigation and a click handler. I'm not worried about testing the href, but I'm trying write a simple "should ...
0
votes
0
answers
45
views
How to scroll to a php page id from another page
I tried to reproduce the problem in the code below. I have 2 pages index.php and confirmation.php. Index.php contains sections with ids once the user submits a form he can get back to where he was ...
1
vote
0
answers
244
views
Close popover with HTML & popover api only?
I'm working with the new HTML Popover API and I was wondering if there was an HTML solution to closing the popover when clicking on one of the anchor elements inside the popover?
<button ...
-1
votes
1
answer
38
views
Why does element a not take the text color from its predecessors [duplicate]
This is the code
<nav class="navbar">
<h1 class="logo">ADVENTURE</h1>
<ul class="nav-links">
<li><a href=&...
0
votes
0
answers
13
views
Html Razor - How to hide anchor link if specific div is not present
Currently I have an anchor div with three anchors present. But the #videos-anchor is showing even when we have no video present on the page.
<div class="anchor-bar__container">
...