Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Tabish Kazi](https://secure.gravatar.com/avatar/52ff59ffeaf9774e26c05e54ebd918f3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Tabish Kazi
5,951 PointsUsing properties from two different pages in a single JavaScript file.
I want to use input value from an input element of one page and use that value as a textContent for a paragraph on another page.
For example, I have an input field (input-1) on one page and a button (button-1) on the same page. Now, I want to add a click event to button-1 so that input-1.value is stored as a textContent for a paragraph (say, pargraph-1) which is on a different webpage.
Thank you.
2 Answers
![Shaun Kelly](https://uploads.teamtreehouse.com/production/profile-photos/132399/micro_IMG_0376.jpg)
Shaun Kelly
35,560 Points![T. Gontarek](https://secure.gravatar.com/avatar/88e8f3867d6361b1a818c835e7b5a764?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
T. Gontarek
7,030 PointsTabish, I am really curious about how you handle this. All I can think if (from a new learner's stand point) is maybe your looking for info on local storage?
https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
Tabish Kazi
5,951 PointsTabish Kazi
5,951 PointsThank you for the reply Shaun, but I didn't understand any of the answers there.