how to send data from one html page to another html page

Опубликовано: 22 Октябрь 2024
на канале: Credible Academy
41
1

#passvaluetoanotherpage

Welcome to Credible Academy Youtube Channel, In this session we will talk about how to pass data share data between two html pages using query string.
let's talk about how we can do this let's suppose we have two html pages one is index.html and second is result.html



using anchor tag in index.html and putting link of result.html following ?(Question mark) with" id = 1" when you click on this link it will take you to the result.html page with the I'd in the url, this is called query String, now what we have to do is to get this id from url by using javascript function window.location.search it give you string like ?id=1




Thanks for Watching !

Follow us on
----------------------
Join us for exciting content and don't forget to like, subscribe, and share!"
Subscribe to our Channel :
Like Facebook Page :   / credibleacedemy  
Follow us on Instagram :  / credible_academy  
LinkedIn :   / mohsin-ahmad-0bb8085b  
Review - https://www.facebook.com/credibleaced...
FB -   / credibleacedemy