1

I tried to create the form data But i can't

if(window.FormData)
{
    alert("okk");
}
else
{
    alert("not okk");
}

It alerts not okk

What i do now?

I have checked the official mdn documentation of the object but found nothing

bhawin
  • 267
  • 1
  • 6
  • 15

1 Answers1

0

add parenthesis :

if (window.FormData())
...
Bardamu
  • 42
  • 5