How to extract 1st paragraph of html page using AJAX and Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • majid091
    New Member
    • Jun 2010
    • 1

    How to extract 1st paragraph of html page using AJAX and Javascript

    Hello, i want to extract only st paragraph of html page, only text not the images in the preview window when ever some one move the cursor to the link.

    Any solution ?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Code:
    doc.getElementsByTagName("p")[0]
    where doc would be a reference to the HTML document.

    Comment

    Working...