javascript local storage pass value one html web page to another

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 169

  • @adolfocarrillo248
    @adolfocarrillo248 3 года назад +20

    Holy cow!!!, this is so exactly what I need!!!! Thank you for sharing your knowledge

  • @GalaxyCookies76
    @GalaxyCookies76 4 года назад +9

    how to get more values from and display it.?

  • @Mohamed-eq3hj
    @Mohamed-eq3hj 2 года назад +1

    Can't believe this,, i spent the entire day looking out for how to do this, i tried everything but nothing worked,
    And its THAT EASY !!!!!!
    thanks so much man

    • @codewithegai
      @codewithegai 2 года назад

      Same here, exactly what I needed.

  • @franciscocatanach2257
    @franciscocatanach2257 Год назад +1

    Ur voice is honestly so satisfying to listen to

  • @suvarnadhavale2882
    @suvarnadhavale2882 2 года назад +1

    thank you sir.....it's really amazing ,i try lots for cods over the internet but no one is working...you can explain in very simple way ,it's really helpful for us ..thank you sir...

  • @jirayutphonyiam6220
    @jirayutphonyiam6220 4 года назад +17

    I spend time for hour to find a bug.
    It is "onclick" ,NO "oneclick"
    I wanna cry

    • @heavygustav
      @heavygustav 4 года назад +1

      hahahaahhaah....it happens bro stay vigilant

    • @timhoward5
      @timhoward5 4 года назад

      I find "=" instead of "-"

    • @phanishwarlal4838
      @phanishwarlal4838 3 года назад

      these bugs really suck!

    • @manojkumarsingh7463
      @manojkumarsingh7463 3 года назад

      Haaaaaaaaaaaaaaaaa 🤣🤣🤣🤣 also it happens with me

    • @matyasmeszaros2227
      @matyasmeszaros2227 3 года назад

      I had the same issue today with 'foreach' instead of 'forEach' lol

  • @musicloop9582
    @musicloop9582 3 года назад

    Please use some good free editors. You will get better syntax checking. Notepad+ is not enough. In your code, you have the opening tag inside the section and the closing tag is inside the . Also, I don't know why you have put inside the head. Please make the corrections.

  • @shoney6289
    @shoney6289 3 года назад

    Super Duper Excellent Video sir, GOD bless you with lot of happiness and Success. 😍😍😍😍😍😍🥰

  • @sadamali6691
    @sadamali6691 2 года назад

    Waaw how lucky i am i was searching this kind of video about a week and i didn't find nothing but to night when i opened the RUclips this video pop's up waaw pro you have got new subscriber thank you and this is what I excectly needed

  • @codewithmadrine7843
    @codewithmadrine7843 2 года назад

    Holly Molly! Have been looking for this for almost 1 week, Thanks Geeks

  • @dchubad
    @dchubad 2 года назад

    very strait forward, thumbs up

  • @padmanabhmalwade2750
    @padmanabhmalwade2750 2 года назад

    Thank you soo much sir I've been tring trying since a week now it worked successfully!!!

  • @009-shrabantide9
    @009-shrabantide9 2 года назад

    Thank you so much for saving my life by showing the code ... thank you

  • @bmfahim7321
    @bmfahim7321 2 года назад

    thank you very much it was very helpful

  • @bhagyashreemore1045
    @bhagyashreemore1045 5 лет назад +4

    thank you so much for this video i have been searching for this since month.. :) keep making such videos

  • @wicker1094
    @wicker1094 Год назад

    Very nice video. Very short and correct.

  • @neuaction
    @neuaction Год назад

    well done sir , you should share more such advanced videos, i have been looking for such videos almost for 3 months

    • @HarithaComputersTechnology
      @HarithaComputersTechnology  Год назад

      Thanks Keep watching! and created a new javascript tutorials, passing multiple elements into a next page please visit sir !

  • @simpletextentertain8927
    @simpletextentertain8927 9 месяцев назад

    can it work with or or text element else ?

  • @JustGame7
    @JustGame7 2 года назад +1

    simple and neat, thank you, how can pass and get the same values,, like we use register and login form

  • @Stakin12
    @Stakin12 2 года назад

    You're a javascript wizard

  • @adityabanare9354
    @adityabanare9354 3 года назад

    finally found the video
    Really helpful awesome

  • @MdMusa-dy3ci
    @MdMusa-dy3ci 4 года назад

    Good explanation

  • @harishhona
    @harishhona Год назад

    Spent an hour with my lab teacher, and here he solved it within 6 and half minutes.

    • @HarithaComputersTechnology
      @HarithaComputersTechnology  Год назад

      please check my new javascript tutorial playlist, you can find passing multiple selected elements

  • @kazukamancha9664
    @kazukamancha9664 7 месяцев назад

    thanks you sir, you help me in my homework

  • @olo-onlyliveonce
    @olo-onlyliveonce 2 года назад

    So much search... Finally found you! Thank you so much I dropped a like and subed!!! Keep it up

  • @genesislumapay9416
    @genesislumapay9416 3 года назад +1

    does it only work on span tag? I tried passing data from input to another input and it doesnt work

  • @leniangraeni9796
    @leniangraeni9796 4 года назад +1

    Thank you so much sir. I'm very grateful to find this video^^

  • @saharshpanjala
    @saharshpanjala 3 года назад +1

    it dint work for me it dint show up the variable in the span area

  • @iseliodelisi3671
    @iseliodelisi3671 4 года назад

    Hi! Thanks your video i was able pass a variable to another page, thanks a lot!

  • @garifalo1
    @garifalo1 4 года назад +1

    why the function return false?

  • @magorzataannaniczyporuk7953
    @magorzataannaniczyporuk7953 4 года назад +1

    Thank you SO much sir! It helped me so much to advance with my project!

  • @syskey1402
    @syskey1402 2 года назад

    Thanks so much dude. RESPECT!!

  • @vivoichsan1208
    @vivoichsan1208 8 месяцев назад

    Sir, what if you use a dropdown list or radio button, what would the syntax be like if you wanted it to appear on the next page

    • @HarithaComputersTechnology
      @HarithaComputersTechnology  8 месяцев назад

      i already made that tutorial .. please check this playlist you can find more than 150+ client side javascript tutorials
      ruclips.net/p/PL5smYbP6KikPLQmfizfQSg-3cep7DzLUq

  • @MARWATTECHS
    @MARWATTECHS 4 года назад

    nice sir

  • @sunilsrinivaas3424
    @sunilsrinivaas3424 2 года назад

    Thank you so much sir

  • @rishbharora4246
    @rishbharora4246 4 года назад

    Loved The Video! Keep up the spirit! Saved My Life!

  • @CaptionThisChallenge_
    @CaptionThisChallenge_ 4 года назад +1

    Thanks bro....You saved my life

  • @adityaparulekar7159
    @adityaparulekar7159 3 года назад +2

    How do you do the same, but for radio button instead of textbox?

  • @ainiexperiencias
    @ainiexperiencias 2 года назад

    Thank, thank and thank!!!! That is exactly what I need

  • @oyash516
    @oyash516 4 года назад +1

    How to pass multiple variables ?

  • @rushikeshrakshe8470
    @rushikeshrakshe8470 Год назад

    Really ThanQ sir

  • @sanityvortexx
    @sanityvortexx 4 года назад +1

    it worked thanks man👍

  • @ktkkoko4331
    @ktkkoko4331 3 года назад

    Thanks sir I really like it

  • @bobbysidhu5894
    @bobbysidhu5894 2 года назад

    Thanks

  • @afguideshd913
    @afguideshd913 3 года назад

    Where did you get a firstname from javascript?

  • @bruhda.a
    @bruhda.a 2 года назад

    why did you do "return false" in function passValues ?

  • @jatindhariwal8352
    @jatindhariwal8352 3 года назад

    Thanks! It was really help full.

  • @ZeddyBoi786
    @ZeddyBoi786 2 года назад

    Thank you sooo much i have been looking for this for ages ... but one thing... can you please explain how i can do this but just with buttons .. e.g. if i have a train station map i just need to press the train station buttons rather than typing in the train station names and then when i press departure station and arival station it displays from... to ... on a new page

  • @zachfenton608
    @zachfenton608 3 года назад

    nice and short video on how to get to another page! Is there a way I can have it pull data from another page. Like I have a page with the events and I want it to call the top 4 events to my homepage from the event page.

  • @jettarinpattanajirarutchag9929
    @jettarinpattanajirarutchag9929 2 года назад

    if the data is radio button or checkbox. how can I pass? thank you for the answer.

  • @abiyuvan9261
    @abiyuvan9261 5 лет назад +3

    Pls respond soon after submit only one data we are getting how to display multiple inputs on tabls

    • @pramodhvedula8314
      @pramodhvedula8314 3 года назад

      Take multiple variables and pass by id or class name

    • @gloft6523
      @gloft6523 3 года назад

      Pramodh Vedula how?

    • @akhils9663
      @akhils9663 3 года назад

      @@pramodhvedula8314 sir how?

  • @dronareddy3613
    @dronareddy3613 5 лет назад +4

    HOW CAN WE DO IT FOR MULTIPLE VALUES

    • @indrawanprast1772
      @indrawanprast1772 3 года назад

      @Swapnil Prakash I tried and it still doesn't wor :(

  • @arcoding823
    @arcoding823 2 года назад

    What to do if you use to pass it then gets alerted and the info will be in the other html

  • @lechapolin
    @lechapolin 4 года назад

    literally it saved my job. thanks!

  • @Ic3m4te
    @Ic3m4te 5 лет назад +1

    thanks sir, u helped me so much!!

  • @history7528
    @history7528 2 года назад +1

    what if i want to generate the all page

  • @manaleeorpe3954
    @manaleeorpe3954 2 года назад

    this helped a lot

  • @robertoriosmorales7528
    @robertoriosmorales7528 2 года назад

    this was so useful, thanks

  • @mattb8426
    @mattb8426 3 года назад

    You are a lifesaver!

  • @paulolinks1
    @paulolinks1 Год назад

    it is possible to define a value( "red car") in an image and on click the name "red car" print on another page?

  • @gamersverse15
    @gamersverse15 2 года назад

    thank you so much

  • @jenniferlacaste1383
    @jenniferlacaste1383 4 года назад

    It doesn't work on my explorer but it works fine with firefox and chrome.

  • @maths4allbysrinivas
    @maths4allbysrinivas 3 года назад

    Video quality is low,720p also not visible clearly.data consumes more.

  • @lucasrodriguez3511
    @lucasrodriguez3511 2 года назад

    You are amazing bro!!

  • @flavioherrera9954
    @flavioherrera9954 4 года назад

    bless you

  • @AymanLkhawa
    @AymanLkhawa 3 года назад

    Thank you so much sir!!

  • @souvikparui8233
    @souvikparui8233 4 года назад

    Thanks you.....

  • @arazmammadov9276
    @arazmammadov9276 4 года назад

    Thank you so much!

  • @neutronstar77
    @neutronstar77 2 года назад

    I got it, Thank you ver much!

  • @pradumkumar6933
    @pradumkumar6933 5 лет назад

    Sir I will follow your all instructions and I will done but when I will try to pass multiple page values to one page then I can't. Please help, waiting for your reply.
    Thanku

    • @muhammadbilal6865
      @muhammadbilal6865 4 года назад

      try it
      firstpage

      Sign Up Form
      Email:

      Password

      Mobile:

      Telephone:


      second pagehtml
      The name is :
      js
      function getData()
      {
      var email = document.getElementById("email").value;
      localStorage.setItem("txtValue", email);

      }
      document.getElementById("data").innerHTML=localStorage.getItem("txtValue");

  • @raphaelrp4718
    @raphaelrp4718 2 года назад

    Thanks a lot bro!

  • @doublehead1973
    @doublehead1973 3 года назад

    This is working wonderfully locally. Im trying to pass date selector data to another page where it creates a custom URL inside an based on the dates (hotel date selector). But as soon as I add the script to wordrpess, it wont pull the localstrorage. Is there any special consideration needed here? I added the scripts to the header and footer of the whole site... Its getting a url string but missing the dates. Works perfect locally with html... I tested the html on the server, works perfect. I can even point the HTML form to the wordpress result page and it works. Therefore it's on the form page (page 1) that somehow fails to follow the header script and store the variables on localstorage. Any ideas?

    • @doublehead1973
      @doublehead1973 3 года назад

      Lol nevermind, I solved it. Missing a line of code (lol)

  • @adnan8465
    @adnan8465 Год назад

    thank you so much man

  • @handrew9894
    @handrew9894 3 года назад +1

    why must i return false?

  • @juniord_osbel
    @juniord_osbel 4 года назад

    THANK YOU SO MUCH BRO!!

  • @aakashgupta7708
    @aakashgupta7708 4 года назад

    Cannot set property 'innerHTML' of null
    facing this error. Please give solution

    • @muhammadbilal6865
      @muhammadbilal6865 4 года назад

      try it
      firstpage

      Sign Up Form
      Email:

      Password

      Mobile:

      Telephone:


      second pagehtml
      The name is :
      js
      function getData()
      {
      var email = document.getElementById("email").value;
      localStorage.setItem("txtValue", email);

      }
      document.getElementById("data").innerHTML=localStorage.getItem("txtValue");

    • @bharathiyandra166
      @bharathiyandra166 8 месяцев назад

      Hi @aakashgupta7708 is it resolved?

  • @handlebyme46
    @handlebyme46 Год назад

    sir ap na ak field ka btay aghr multiple field ho input ki tb kysa kry gy

    • @HarithaComputersTechnology
      @HarithaComputersTechnology  Год назад

      please check my other video in the javascript playlist, you can sending multiple values to the next page, thanks

  • @front-enddeveloper-cf1jn
    @front-enddeveloper-cf1jn Год назад

    ooooo goood thankyou bro oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

  • @akhils9663
    @akhils9663 3 года назад

    Can you please give me a solution for transfering multiple variable?

  • @mdiqbal7168
    @mdiqbal7168 2 года назад

    How to decrease time for send data from page1.html file to page2.html file

  • @bhanuvasantha2353
    @bhanuvasantha2353 3 года назад

    Sir is it possible to keep a image instead of text

  • @tiborifj.fazekas6251
    @tiborifj.fazekas6251 3 года назад

    Awesome video!

  • @xulum1299
    @xulum1299 4 года назад

    thank you!

  • @HarpreetKaur-lg1sf
    @HarpreetKaur-lg1sf 2 года назад

    how can i use a textbox to capture that value?

  • @jirayutphonyiam6220
    @jirayutphonyiam6220 4 года назад

    I love this!!

  • @bharatns598
    @bharatns598 3 года назад

    how to do this in reactjs

  • @irinabacal9598
    @irinabacal9598 2 года назад

    Hello. Nice video. Is it possible to pass multiple values from one page to another? I have an input where you can add words and they are displayed in the same page and I need to pass those values to the next page in order to display them there.

    • @hammerTime11
      @hammerTime11 2 года назад

      You can make use of form tag and pass it on to the required field

  • @salahsallami5522
    @salahsallami5522 Год назад

    Tank you

  • @videloco84
    @videloco84 4 года назад

    THX!!!!!!!!!!!!!!! I was lost and found your video

  • @chelseafraher9392
    @chelseafraher9392 4 года назад +1

    Gracias bro! A lo mejor no me entiendes, pero si jalo SIUUUUUUUUU

  • @yatinkher2679
    @yatinkher2679 2 года назад

    Sir can you please make drop down form get value

  • @aryanmathur
    @aryanmathur 3 года назад

    THANK YOU SO SO SO SO MUCHHHHHH!!!!!!!!!!!!!

  • @tanayjoshi9578
    @tanayjoshi9578 Год назад

    how do you do this with checkboxes

  • @danimichely2723
    @danimichely2723 2 года назад

    Muito obrigada, senhor. Você me ajudou muito!

  • @gabrielamagrani1506
    @gabrielamagrani1506 3 года назад +1

    Obrigada por esse video! (:

  • @khamei8094
    @khamei8094 5 лет назад

    It doesn't work in my test file 😞😞 waiting for your reply.

    • @muhammadbilal6865
      @muhammadbilal6865 4 года назад

      tr it
      firstpage

      Sign Up Form
      Email:

      Password

      Mobile:

      Telephone:


      second pagehtml
      The name is :
      js
      function getData()
      {
      var email = document.getElementById("email").value;
      localStorage.setItem("txtValue", email);

      }
      document.getElementById("data").innerHTML=localStorage.getItem("txtValue");

  • @prathmeshbankar8059
    @prathmeshbankar8059 Год назад

    after 2 hours 😭😭😭😭😭😭 finally issue solved

  • @rashidmehmood7948
    @rashidmehmood7948 5 лет назад

    thanku so much gentleman

  • @mihaiimihaii5530
    @mihaiimihaii5530 4 года назад

    same dont work

  • @chanakaramanayake8409
    @chanakaramanayake8409 3 года назад

    thanks..