Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 966865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:13:38+00:00 2026-05-16T02:13:38+00:00

I want a javascript code which will go through all the html file in

  • 0

I want a javascript code which will go through all the html file in my root folder and sub-folders and gets the content which are within a particular tag,
eg:

<div id="content">
!!this content!!
</div>

It should check for a comment at the top of html and only get the content if it exist.

<!–Allowed–>

It should only get if this is there. First of all is this possible? I wish jquery could do this!

Update:
Got enlightened that javascript is for client-side! So One last question, how does you use php to get the content that is within the a particular tag?

    <div id="content">
    !!this content!!
    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:13:39+00:00Added an answer on May 16, 2026 at 2:13 am

    At first you have to get all the folders that are in the folder (on the server). That’s not possible with JavaScript alone. You have to write a PHP (or any other web-language supported on your webspace/server) which gives you the filename-list.
    Then you can load each file with jQuery’s ajax-functions and test for your comment, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this javascript code to which i want to add the jquery fade-in
I have a javascript code using which I want to accomplish the following .
I'm using this HTML,CSS and Javascript code (in one document together if you want
My free webhost appends analytics javascript to all PHP and HTML files. Which is
I want the javascript code to be someFunction(42, function onSuccess() {}, function onFailure() {})
I want change following javascript code to jquery code, How is it? With done
I want to generate Javascript code from an existing Java project ( original question
I want a piece of Javascript code or some guidance on how to write
I'm coding up a page where I only want to use raw JavaScript code
I have a JavaScript function code where I want to alert. function msgalert(x,y) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.