S
Slartybartfast
I have a link that when clicked does something on another machine, and it
all works fine.
<a href=http://www.remotedomain.com/cgi-bin/task.cgi?identifier>Do That
Thing</a>
But I thought it might be a good idea to verify the user is wants to do it
(and didn't click on the link by accident), so I added the following
javascript:
<script language="JavaScript">
function doit() {
if(confirm('Do you really want to do that thing?'))
{ decision.value =
'http://www.remotedomain.com/cgi-bin/task.cgi?identifier;' submit(); }
}
</script>
<a href="javascript:doit()">Do That Thing</a>
The alert box pops up fine, but I've tried a bunch of different things and I
can't get the link to work when the user clicks on the OK button.
Can someone please give me an idea what's wrong?
all works fine.
<a href=http://www.remotedomain.com/cgi-bin/task.cgi?identifier>Do That
Thing</a>
But I thought it might be a good idea to verify the user is wants to do it
(and didn't click on the link by accident), so I added the following
javascript:
<script language="JavaScript">
function doit() {
if(confirm('Do you really want to do that thing?'))
{ decision.value =
'http://www.remotedomain.com/cgi-bin/task.cgi?identifier;' submit(); }
}
</script>
<a href="javascript:doit()">Do That Thing</a>
The alert box pops up fine, but I've tried a bunch of different things and I
can't get the link to work when the user clicks on the OK button.
Can someone please give me an idea what's wrong?