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 8213513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:08:38+00:00 2026-06-07T11:08:38+00:00

Is it possible to search all web pages you developed (not just current page

  • 0

Is it possible to search all web pages you developed (not just current page the user is on) for a body tag with a specified ID? If so how would I go about doing this in Javascript? Also, how would I go about re-directing the user to the page that contains that body with the unique ID?

  • 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-06-07T11:08:40+00:00Added an answer on June 7, 2026 at 11:08 am

    If you really want to do it, you could do it if you knew the pages’ urls:

    (using jQuery)

    function searchPages(urls,elem,success,failure){
        nextUrl(urls,0);
        // this calls itself as a callback because $.load is asynchronous
        function nextUrl(i){ // this function tries to load a body#myId for the url 
             $('<div /'>).load(urls[i]+' '+elem,function(){ 
                 // if it loaded there'd be html
                 if($(this).html()!=='') success.call(this,urls[i]); 
                 // if you've loaded all the pages, then you're done
                 if(i===urls.length) 
                    failure.call(this,urls[i]);
                 // otherwise, call the function again for the next url
                 else nextUrl(i+1);
               });
        };
    }
    
    searchPages(['/url1','/url2','/url3'],'body#myId',function(url){
       console.log(url); // this is the url you want
       console.log($(this)); // $(this) is the div that the body elem was loaded into
    },failed);
    
    // this is called if you don't find the page
    function failed(){ alert('no page found'); };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have search all over the web but could not find answer to this
I'm trying to search for all elements in a web page with a certain
Is it possible to search a string that is a regex, without escaping all
Possible Duplicate: Windows Phone 7 Search Button I think that all Windows Phone mobiles
I'm developing a search engine for my web project (PHP/MySQL). User should be able
I would like to web-scrape the html source code of java-script pages that I
I would like to know if it's possible to make pages invisible for users
Is it possible to cache a page render on an iis web server, but
I basically have this web page where you can narrow your search results by
The url http://www.example.com/ and http://www.example.com/index.html both display the same web page. But search engine

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.