I created the following code:
Expand|Select|Wrap|Line Numbers
- <script language="javascript">
- function question(){
- strReply = confirm('Click Yes if you wish to continue.')
- alert(strreply)
- }
- </script>
<%
Test value of strReply and perform code based on the response
%>
The problem is, that although the reply variable can be read with the alert command in the Javascript section, it cannot be read in the VB code. I tried creating a reply input field:
<input id="reply" name="reply" type="text" value="<%=strReply%>"/>
and then in the Javascript section, entering the following command:
document.frmKPIActMaintLoc_01.reply.value = strReply
but it also did not work.