아래 코드의 뒤로 버튼이 작동하지 않습니다. 다시 클릭하면 이전 페이지로 이동하지 않습니다. 아무도 내가 어떻게 작동하도록 제안 할 수 있습니까? 귀하의 제안에 감사드립니다. 가능한 모든 것을 확인하기 위해 많은 노력을했습니다. 나는 이것을 작동시키지 않았다.HTA 뒤로 버튼이 작동하지 않습니다.
<html>
<head>
<title>Title</title>
<HTA:APPLICATION ID="Main"
APPLICATIONNAME="Main Application"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="yes"
CONTEXTMENU="no"
ICON=""
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="yes"
NAVIGABLE="yes"
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no" />
<script language="VBScript" type="text/vbscript">
function doValidation()
dbalias=frmMyForm.test.Value
IF len(dbalias)=0 then
document.writeln("Please select the Environment and Try again")
doValidation=False
document.writeln("<br><tr><td nowrap align=Center colspan=2><input type=button value=Back name=ClickBack onclick=history.back()></td></tr>")
End if
End function
Sub cmdSubmit_OnClick
if (doValidation()) Then
dbalias=frmMyForm.test.Value
MGSBOX DBALIAS
End if
End Sub
</script>
</head>
<body bgcolor="#E6E6FA">
<h1 align="center"><font face="Times Roman" color="blue">Title</font></h1>
<form action="temp3.php" name="frmMyForm" id="frmMyForm" method="post">
<fieldset>
<label>* Select the Test </label>
<select name="test" id="test">
<option value="" selected></option>
<option value="test1">Test1</option>
<option value="test2">Test2</option>
<option value="test3">Test3</option>
</select>
<br>
<input type="button" name="cmdSubmit" id="cmdSubmit" value="Submit" style="height:25px; width:60px">
</fieldset>
</form>
</body>
</html>
"작동하지 않음"을 정의하십시오. 사용중인 방식으로 ['document.writeln()'] (https://developer.mozilla.org/en-US/docs/Web/API/document.write)를 사용할 수 없습니다 지금. 새 문서를 열고 현재 문서의 모든 내용을 지 웁니다. – Teemu