Passing values
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, April 5, 2001 11:57 AM

How can we pass values from one html page to another html page using java script.This includes the values from dropdown boxes, radio buttons.

My second question is : How can we make an radio button readonly?

Re: Passing values

Posted By:   idris_yuce  
Posted On:   Thursday, February 28, 2002 12:20 AM

if you have opened the second page which you want to pass variable from with window.open command,
then it is easy.
you can get the main page with the "opener" variable.
Below is an example function to pass a value from the opened page to main (opener)page.


function setOpenerValue(){
//value we will pass from opened page
var val = document.form.elementOpened.value;
opener.form.elementOpener.value=val;
}


you get the value form opened page and passed it to opener page.
About | Sitemap | Contact