브라우저로 돌아갈 때 사용할 수없는 상태의 확인란을 유지하는 데 어려움이 있습니다.Back을 사용하여 페이지로 돌아갈 때 확인란을 비활성화 상태로 유지하는 방법은 무엇입니까?
문제점을 설명하기 위해이 두 샘플 페이지를 생성했습니다.
이전 페이지로 돌아갈 때 확인란을 계속 사용할 수 없게하려면 어떻게해야합니까?
test1.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<form id="test" action="/">
System <input type="checkbox" id="chkSystem148" onclick="this.disabled = true;"/>
<a href="test2.html">Go to test2</a>
</form>
</body>
</html>
test2.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<input type="button" value="Go Back" onclick="history.back(-1); return false;" />
</body>
</html>
쿠키를 설정하고 onLoad를 확인하는 JavaScript 함수를 추가 할 수 있습니다. – Blazemonger