How can i get the href from such a table?
<table class="file_slot" cellpadding=0 cellspacing=3>
<tr>*****************</tr>
<tr>
<td><b>Size:</b></td>
<td>452<small><a href="http://www.google.com">Google</a></small></td>
</tr>
I tried using getElementsByClassName but i don't get to the <a> tag.
Thanks in advance
You can do
var href = document.querySelector('.file_slot a').href;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With