[ad_1]
How do i successfully check if a html object's data is equal to that of a variable on button click? I've tried this but it just seems to be executing the code whether the statement is correct or not.
var FL1 = document.getElementById("FL1Object").data
var Data = 'FL1.png'
document.getElementById("FLLeftBtn").onclick = function()
FLLeftBtnClicked();
function FLLeftBtnClicked()
if (FL1 = Data)
alert("Test Successful");
[ad_2]
لینک منبع