Тема: What is wrong with this code?
I want to compare two vars and if they both match a value execute a code.
if (string == "1") && if (string2 == "1") {alert('Select a diferent value for string2');}
if (string == "1") && if (string2 == "2") {window.open('http://example.com');}
The code above doesn't work. Any help
Thanks