Hi @vani97,
If you want to carry these values from one page to another, e.g. for data capturing, etc., then you need to use document.controller to transfer the values.
So in the script on the page where these values are being entered by the user, you need to use
document.controller.setValue('/ctx/vars/email', email);
where email is the value entered in the form.
BR,
Ishan