Bring PROMPT() information to next page

T

Taffy Collins

I have an ASP page that contains an A HREF tag. This will load a new page and carry some variables to the new page. What I want is that, whenever a person click the item,the prompt box comes up and ask "why are you not working item." Whatever the person types as the response, I want it to be also carried over to the new page and stored as a variable. I think that JAVASCRIPT could achieve this, but I do not know how. Can anyone tell me the script that willl accomplish this? The information I have in the page itself is as follows:
<a href="somepage.asp?repp=<%=avariablefromthepage%>&pot=<%=anothervariable%>&wantfix=n" value="no" onClick=''whyNotDone();''>Not Done</a>
 
R

Ray Costanzo [MVP]

You want actual user input from a prompt box?


<a href="javascript:functionName()">Note Finished</a>

<script type="text/javascript">
function functionName() {
s = prompt('why are you not working item. (stet)');
location.href =
'somepage.asp?repp=<%=avariablefromthepage%>&pot=<%=anothervariable%>&wantfix='
+ s;
}
</script>

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,378
Latest member
BlakeLig

Latest Threads

Top