Deprecated: Function create_function() is deprecated in /var/www/vhosts/ on line 70
JavaScript Problem: Passing a JavaScript Value Between HTML Pages |
  • Friday , 4 December 2020

JavaScript Problem: Passing a JavaScript Value Between HTML Pages

Code Canyon

In this tutorial we are going to look at passing a value from one HTML page to another. We will use two techniques: localstorage and the query string. The value we are going to pass is the number of milliseconds so that we can determine elapsed time.

For more resources on JavaScript:

Access to EVERY course (get 2 months free):

Courses offered on Udemy at a discount (access from my site):

Tutorials referred to in this video:
local storage:
Formatting Time with Date object:
Tracking Elapsed Time:
Determining Days Between Dates:

#javascript #AllThingsJavaScriptLLC

Original source

3d Ocean

Related Posts


  1. Ferdric Gabriel Aquino
    May 16, 2020 at 08:52

    Awesome tutorial! Now how do you pass more than one value between pages? I am using your second method here.

  2. PUBG Indian Gamer
    May 16, 2020 at 08:52

    I just wanted to take out the heading text of one page and show it on other html that this the heading how to do so

  3. Samin Rubel
    May 16, 2020 at 08:52

    Thank you sir

  4. ani ps
    May 16, 2020 at 08:52

    Hello sir, Awesome tutorial 🙂 I have a doubt
    @10:31 in line 12 instead of function(){init();} i did init() directly and it is not working and what s the difference between the two.

    I am pretty new to js i started just today so I don't understand the difference

  5. jet monkey
    May 16, 2020 at 08:52

    I'm having trouble getting the technique to work. I want once the script is executed for the other page to be permanently edited, is there a way to do that with this technique or is that not possible?

  6. jegue studio
    May 16, 2020 at 08:52

    Good video but i have any question. We can't change the value propertye from a html element? For example: var htmlElement = document.getElementById("idElement"); htmlElement.value = "someValue";
    It didn't work for me as it did work before.

  7. Ousmane Mikael Oulare, Kymlingeskolan, 6A
    May 16, 2020 at 08:52

    may i ask how to do document.getElementByClassName("rectangle").style.transform ="translatex(+" var x name"+px)" //(1<15) +=1 i want to kill my self becus i dont know how to do

  8. Tomomi Nakamura
    May 16, 2020 at 08:52

    This video was really useful! I tried with erb file instead of html, but it did not work… It worked fine with html files. Would be very nice if you let me know how to fix it!

  9. Programming And Algo Portal
    May 16, 2020 at 08:52

    Thanks man It works !! I was facing some dynamic data storage between 2 pages but you helped me out from it ….
    Thumbs Up and A Subscribe for you 🙂 <3

  10. Ch Chan
    May 16, 2020 at 08:52

    Thank you for the awesome tutorial. How to reset the elapsed time in every refresh or attempt?

  11. Nick Moreno
    May 16, 2020 at 08:52

    This is very good! Glad to have found your channel and looking forward to more stuff! 🙂

  12. Rajeshkumar
    May 16, 2020 at 08:52

    Awesome! Please post videos on js Design patterns…

  13. RagHelen
    May 16, 2020 at 08:52

    About the replacing with regex: Is there nothing less costly, like splitting or find and slice in Python?

Leave A Comment

You must be logged in to post a comment.