Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Javascript
How to extract 1st paragraph of html page using AJAX and Javascript
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
majid091
New Member
Join Date:
Jun 2010
Posts:
1
#1
How to extract 1st paragraph of html page using AJAX and Javascript
Jun 23 '10, 05:29 AM
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
Join Date:
Nov 2006
Posts:
16032
#2
Jun 23 '10, 10:39 AM
Code:
doc.getElementsByTagName("p")[0]
where doc would be a reference to the HTML document.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment