@SyntheadM to Very Real Tech PicsEnglish • 11 months agodocument.write("<b>Hacked!!!</b>")imagemessage-square12arrow-up1141arrow-down12
arrow-up1139arrow-down1imagedocument.write("<b>Hacked!!!</b>")@SyntheadM to Very Real Tech PicsEnglish • 11 months agomessage-square12
minus-square@[email protected]linkfedilink23•11 months agoThat code wouldn’t work, the variable hack is never set.
minus-squaremacniellinkfedilink10•11 months agoExcept that’s how you write JavaScript embedded in html. At least that was the way when there were browsers that didn’t know the script-tag.
minus-square@kautaulink7•11 months agoNo, the variable code is set to a string of “hack” The code will work, but will just run the course of the else path and replace all the HTML with bold text that says “Unknown Reso And whatever else that cut off string contains
minus-square@[email protected]linkfedilink1•11 months agoYou are right. I honestly stopped reading halfway through, just assumed they were all else if’s
minus-square@[email protected]linkfedilink1•11 months agovar code is set to hack. Though the code would run didn’t notice the lace condition is an else not an else if
minus-square@[email protected]linkfedilink1•11 months agoI wasn’t being serious. Lace condition sounds scandalous.
That code wouldn’t work, the variable hack is never set.
deleted by creator
Except that’s how you write JavaScript embedded in html. At least that was the way when there were browsers that didn’t know the
script
-tag.No, the variable
code
is set to a string of “hack”The code will work, but will just run the course of the
else
path and replace all the HTML with bold text that says “Unknown ResoAnd whatever else that cut off string contains
deleted by creator
deleted by creator
You are right. I honestly stopped reading halfway through, just assumed they were all else if’s
right at the top, it is set to
var code
var code is set to hack. Though the code would run didn’t notice the lace condition is an else not an else if
I wasn’t being serious. Lace condition sounds scandalous.