dex dex - 1 month ago 5x
Javascript Question

how to change word with javascript

<p class="author">
hipstr 發表在 <a href="">痞客邦 PIXNET</a>
<a href="">留言</a>(0)
<span class="author-views">人氣(
<span id="BlogArticleCount-146448884"></span>)
<a title="編輯" href="">
<img title="編輯" alt="edit this article" src="//" border="0">
<a title="刪除" href="javascript:pix.delArticle(146448884, false);">
<img title="刪除" alt="delete this article" src="//" border="0">
<!-- .author //-->

hello, everyone.
I am trying to replace"留言" with "comments"

I've tried

but it didn't work. anyone can help out? thanks.


You can try to use this:

[]'author'), function(comment) {
    comment.innerHTML = comment.innerHTML.replace('留言', 'comments');