how to Pass data from one form to another page/form using javascript...

You could have javascript itself submit the form. Do you have a form element on the first page?

For example...

function formSubmit() {
  document.getElementById("form1").submit();
}
Member Avatar

Normally there would be something on the server side, however you could use cookies or localstorage.

This question is far too vague to truly answer. This could be a question about AJAX, submitting data then accessing it on any other pages within the same domain (cookies/local storage) or CORS (sending data via AJAX to other domains). We need a better question here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.