Hi! I'm a beginner in JavaScript and I've managed to retrieve some data using getElementById. Now, I want to extract a specific part using getElementsByTagName.
document.getElementById('titleUserReviewsTeaser').innerHTML;
"
<h2>User Reviews</h2>
<div class="user-comments">
<div class="tinystarbar" title="10/10">
<div style="width: 100px;"> </div>
</div>
<span itemprop="review" itemscope="" itemtype="http://schema.org/Review">
<strong itemprop="name">Awesome review for an awesome movie</strong>
<span itemprop="reviewRating" itemscope="" itemtype="http://schema.org/Rating">
<meta itemprop="worstRating" content="1">
<meta itemprop="ratingValue" content="10">
<meta itemprop="bestRating" content="10">
</span>
<div class="comment-meta">
25 August 2005 | by <a href="/user/ur6899565/?ref_=tt_urv"><span itemprop="author">Dragondrawer88</span></a>
<meta itemprop="datePublished" content="2005-08-25">
(United States)
– <a href="/user/ur6899565/comments?ref_=tt_urv">See all my reviews</a>
</div>
<div>
<p itemprop="reviewBody">Balto has been a favorite movie of mine ever since it came out. This is the touching story of an out casted half dog half wolf named Balto voiced by the talented Kevin Bacon who's voice added a slight charm to the Balto character. The story takes place in Nome Alaska in the year 1925. A sickness as stricken the town's children and with out the antitoxin which is located hundreds of miles away in town of Nanana, the children will surly die. The dog team sent to retrieve the medicine which is led by Balto's almost arch nemesis Steel, is lost in a horrible snow storm. Now...
</p>
</div>
// The code continues here
Now, I'd like to extract the data between <p itemprop="reviewBody">
and </p>
tags. How can I achieve this?