GeeCON Prague 2014*
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
Author

Passing variable

Prashil Wasnik
Greenhorn

Joined: Apr 18, 2006
Posts: 19
Hi,
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
Hi,
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.

Ashish
Eric Pascarello
author
Rancher

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

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Passing variable