R
RobertTG
Someone please translate the code below into English...
Particularly the indicated line
Thanks
function attachComment()
{
var aForms = document.getElementsByTagName("FORM");
for (var i = 0; i < aForms.length; i++)
{
var oForm = aForms;
if (/comment_fieldset/.test(oForm.className)) // <--- WHAT DOES THIS
LINE MEAN ?
{
oForm.onsubmit = function()
{
return addComment(this);
}
}
}
}
Particularly the indicated line
Thanks
function attachComment()
{
var aForms = document.getElementsByTagName("FORM");
for (var i = 0; i < aForms.length; i++)
{
var oForm = aForms;
if (/comment_fieldset/.test(oForm.className)) // <--- WHAT DOES THIS
LINE MEAN ?
{
oForm.onsubmit = function()
{
return addComment(this);
}
}
}
}