D
Doo0592
Hi all,
Judging by the topics in here this should be a snap for all of you!
Can any one explain why when i use the window.confirm in an if else
statement it behaves like this:
if (var == value)
{
do this
}
else
{
addTheTrack = window.confirm('confirm overwrite')
if(addTheTrack == true)
{
do that
};
};
addTheTrack is initialised earlier.
When i execute this code is does the window.confirm action whether if
(var == value) is true or not and if i switch it to if (var = value)
then it does the else...
Mucho confoosed.
Any help appreciated Doo x
Judging by the topics in here this should be a snap for all of you!
Can any one explain why when i use the window.confirm in an if else
statement it behaves like this:
if (var == value)
{
do this
}
else
{
addTheTrack = window.confirm('confirm overwrite')
if(addTheTrack == true)
{
do that
};
};
addTheTrack is initialised earlier.
When i execute this code is does the window.confirm action whether if
(var == value) is true or not and if i switch it to if (var = value)
then it does the else...
Mucho confoosed.
Any help appreciated Doo x