jeorg
10-29-2002, 10:31 AM
I have this function
-----------------------------------------------------
<script type="text/javascript">
function getconfirm()
{
if (confirm('Yes or No ?')==true)
{
return true;
}
Else
{
return false;
}
}
</script>
------------------------------------------------
and the command
onclick="return getconfirm();"
it doesnt work
Why ??
can I keep writting
if (confirm('Yes or No ?')==true)
in sted of
if (confirm("Yes or No ?")==true)
thank you
-----------------------------------------------------
<script type="text/javascript">
function getconfirm()
{
if (confirm('Yes or No ?')==true)
{
return true;
}
Else
{
return false;
}
}
</script>
------------------------------------------------
and the command
onclick="return getconfirm();"
it doesnt work
Why ??
can I keep writting
if (confirm('Yes or No ?')==true)
in sted of
if (confirm("Yes or No ?")==true)
thank you