Capturing value entered in textfield of form and using in javascript code

Can't Post

Hello!

I am just a beginnerin javascript,so pls need your help!

I am making a website using html.I need to capture a value from a textfield of one form in a page and use the value in an if-else loop in javascript in another page.How to capture the value that would be given by any user and use the value to run the loop to display certain information to the user according to the value? And where should I put the script in the head section or the body section?

Re: [saturn] Capturing value entered in textfield of form and using in javascript code
[In reply to]

Can't Post

Way -1 Once posting the value to next form,to store the POST method values to the hidden box,Actually there you will be running a java script,Now you will be able to access the hidden boxes,So you can get the value,But it is not security way, Way -2 You can access paret and top methods to get the distance form values, Example: parent.Docuemnt.GetElementById('field_name').value;