Click to See Complete Forum and Search --> : how to pass the values of text field from one htm to another


usmanar
01-03-2003, 05:06 AM
how can i pass the value of the text fields in form to another htm with using javascript?

without using jsp or asp? what's the syntex in javaScript for getting the values, like request.getParameter("fieldname"); used in JSP?

its urgent plz!!!

Usman

khalidali63
01-03-2003, 05:49 AM
You can do that using location object.
from one html to another pass the value using URL and then get the value from the URL on the second page.

page 1

location.href="nextpage.html?this will be seen on next page";

on the next page

var message = window.location;

and then parse the message from "?" on for the actual message string

cheers

Khalid