Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

ref to another page and achor

//____________________________IN HTML_______________________________________
<section>
    <a id="section1">
        CONTENT
    </a>
</section>

<a href="different-page.html#section1">Section One</a>

//____________________________IN REACT_______________________________________
//npm i react-router-hash-link in CONSOLE
import { HashLink as Link } from 'react-router-hash-link';

<Link to="home-page#section-three">Section three</Link>
Comment

PREVIOUS NEXT
Code Example
Javascript :: Jspinner max and min value 
Javascript :: node js module export class 
Javascript :: how to delete a folder in node js 
Javascript :: how to map through array of iterators 
Javascript :: unhandledpromiserejectionwarning: mongooseerror: the `uri` parameter to `openuri()` must be a string, got "undefined". 
Javascript :: adding event listener keypress event in javascript 
Javascript :: JS get min date 
Javascript :: aos js cdn 
Javascript :: is react case sensitive 
Javascript :: discount calculator javascript 
Javascript :: javascript const require 
Javascript :: changing the active class on press 
Javascript :: javascript infinity loop 
Javascript :: get caret position javascript 
Javascript :: javascript skip default parameter 
Javascript :: react native scrollview full height 
Javascript :: statusbar.sethidden(true) in react native 
Javascript :: jest console.log 
Javascript :: check if array has same values javascript 
Javascript :: javascript get random array of integre in given range 
Javascript :: js background 
Javascript :: replace backward slash in javascript 
Javascript :: select html react 
Javascript :: how to test usestate in jest 
Javascript :: list methods of object js 
Javascript :: javascript string includes 
Javascript :: material ui jss media query 
Javascript :: how to master javascript 
Javascript :: javascript seconds to date 
Javascript :: js unique array 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =