<p> Courtesies cannot be borrowed like snow shovels; you must have some of your own. </p>
<p> A reformer is one who brings reforms in the society.</p>
<script type="text/javascript">
function paragraph_first()
{
var paragraph = document.getElementsByTagName('p')[0].innerHTML; // First <p>
alert(paragraph);
}
function paragraph_second()
{
var paragraph = document.getElementsByTagName('p')[1].innerHTML; //// Second <p>
alert(paragraph);
}
</script>
Courtesies cannot be borrowed like snow shovels; you must have some of your own.
A reformer is one who brings reforms in the society.
<button onclick="paragraph_first()"> Click For First Paragraph </button>
<button onclick="paragraph_second()"> Click For Second Paragraph </button>
<p> Courtesies cannot be borrowed like snow shovels; you must have some of your own. </p>
<p> A reformer is one who brings reforms in the society.</p>
<script type="text/javascript">
function paragraph_first()
{
var paragraph = document.getElementsByTagName('p')[0].innerHTML; // First <p>
alert(paragraph);
}
function paragraph_second()
{
var paragraph = document.getElementsByTagName('p')[1].innerHTML; //// Second <p>
alert(paragraph);
}
</script>