Javascript – How to convert this document.write to innerHTML?
I'm using this script to output the total number of posts. <script> function mbhTotalCount(json) { var totalCount = parseInt(json.feed.openSearch$totalResults.$t, 10); document.write (totalCount); } </script> <span class='count'> <script src="/feeds/posts/default?alt=json-in-script&callback=mbhTotalCount"></script> </span> How can we change this to alternative form?