By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,672 Members | 1,301 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,672 IT Pros & Developers. It's quick & easy.

The line number of a text node in the html source ?

P: 1
hi all ! ,
I am facing a problem ,
I need a script that determines the line number of a given word in the html source ,

Can you help me ?
Feb 20 '07 #1
Share this Question
Share on Google+
1 Reply

acoder
Expert Mod 15k+
P: 16,027
Welcome to The Scripts.

I don't think this is possible using javascript. You can fix a solution by being careful how you code and determining your whitespaces and newlines are all controlled, but I don't think there is a complete programmatic solution to this.
Feb 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.