RexJacobus
Programmer
Please help. I'm trying to write a form that can overwrite some files on the server.
In the head of my HTML form:
function SendNews(f,n)
{
var decision =confirm("Are you sure you want to overwrite."))
if decision == true
{
{document.location = " alert("Sent to server");
return true;
else
alert("News not sent");
return false;
}
In the body of my HTML form:
<input type=submit value='Change News' onClick="SendNews(text1,text2)";>
But nothing happens. Neither alert fires, I get no error msgs, nothing.
thanks,
In the head of my HTML form:
function SendNews(f,n)
{
var decision =confirm("Are you sure you want to overwrite."))
if decision == true
{
{document.location = " alert("Sent to server");
return true;
else
alert("News not sent");
return false;
}
In the body of my HTML form:
<input type=submit value='Change News' onClick="SendNews(text1,text2)";>
But nothing happens. Neither alert fires, I get no error msgs, nothing.
thanks,