File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Passing variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Passing variable" Watch "Passing variable" New topic

Passing variable

Prashil Wasnik

Joined: Apr 18, 2006
Posts: 19
How can i pass the variable between 2 HTML pages using javascript, my limitation is i don't have server side and the parameter which i want to pass is contain around 10K of text.
Ashish K Sharma
Ranch Hand

Joined: Aug 22, 2006
Posts: 31
if you are opening the child window from parent window you can get the value by saying "window.opener.document.getElementById("varToPass").value".

Let me knwo if you have some other requirement.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15383
Are these windows on the same machine or different machine. If same, you have a pop up window. If different, break out email.

I agree. Here's the link:
subject: Passing variable