javascriptの を使用して、別のHTMLページへの1つのHTMLページからの値の渡し、以下の私のコードです: ・ファーストページhtml1.htmlとして:Javaスクリプトを使用すると、あるHTMLページから別のHTMLページに値を渡すことはできますか?
<!DOCTYPE html>
<html>
<head>
<script>
function newDoc()
{
window.location.assign("html2.html");
}
</script>
</head>
<body>
<input type="button" value="submit" onclick="newDoc()">
</body>
</html>
そしてhtml2.htmlとしての第2のHTMLコード:
<!DOCTYPE html>
<html>
<head>
<script>
function newDoc()
{
window.location.assign("html1.html");
}
</script>
</head>
<body>
<input type="button" value="submit" onclick="newDoc()">
</body>
</html>
[localStorage](http://www.w3schools.com/HTML/html5_webstorage.asp)に値を格納しようとする可能性があります。 – matox
Cookieを使用しますか? – evolutionxbox
単にPOSTまたはGETを使用するのはなぜですか? – jogoe