I'm inserting large amounts off text in one textarea and it's HTML text. I use <hr /> for a page break, but now I want to know how many pages I have in one textarea. So I have to know the amount/count off the <hr /> TAGs. Does anybody know how I can count these <hr /> TAGs from the texarea value? Maby something with getElementsByTagName??
Now I have something like this:
* myform.ItemInfo is a textarea
<script>
arrayOfHRs = document.myform.ItemInfo.getElementsByTagName("hr"
;
</script>
But This doesn't work.
If you can help me.... thx!
Now I have something like this:
* myform.ItemInfo is a textarea
<script>
arrayOfHRs = document.myform.ItemInfo.getElementsByTagName("hr"
</script>
But This doesn't work.
If you can help me.... thx!