Hi All,
I would like to get the following output from htm ot html files:
I would like to get the following output from htm ot html files:
1. MY WEBSITE (Means to get text between TITLE tags)
2. left (Means to align values of "p" tag)
3. boat.gif (Means to src values of "img" tag)
<7HEAD>
My First Heading
My first paragraph.

Thanks Allot in Advance
Darma
VulpesRank #55 · 29.2K reputationPosted May 6, 2013, 4:33 AM EDT
string regExp3 = @"
Raj BandiRank #1,603 · 981 reputationPosted May 6, 2013, 2:40 AM EDT
var title = document.title;
//left value, Note: without an id, get p first element, with id use document.getElementById
var align = document.getElementsByTagName("p")[0].getAttribute("align");
//boat.gif
var src = document.getElementsByTagName("img")[0].getAttribute("src");
Call above scripts when dom is ready i,e. either call a function on body load or include above script between and