Hello,

I don't know if this is JS, but I think the DOM would help do it....

Anyhow... I link to a lot of PDF files statically for a website I maintain. Is there any way to use JS or PHP to find out if the file is a PDF in the link, then add the file size to the link text dynamically?

for example.... <a href="pdflink.pdf" target="_blank">PDF LINK $size</a>, but with out me adding $size everytime?

I know how to get the file size in PHP... just seeing if there is a quicker way more efficient way with the DOM for every PDF a href...

Thanks!