Wednesday, October 19, 2011

find a tag : document.getEelementByTagName

x=document.getElementsByTagName("p");

for (i=0;i<x.length;i++)
{
document.write(x[i].innerHTML);
document.write("<br />");
}

No comments:

Post a Comment