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

  • Home
  • SEARCH
  • 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 6075601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:30:46+00:00 2026-05-23T10:30:46+00:00

I need the ability to more or less perform an inspect element or more

  • 0

I need the ability to more or less perform an inspect element or more to the point be able to highlight and save particular DOM elements on mouseover. This is synonymous with the “Elements” tab of the Google Chrome developer tools or “HTML” tab in FireBug.

I do not need to show the DOM or a pane like these tools I simply need to know what the XPATH or DOM object is and then be able to highlight that (like these tools do) on the webpage itself. These tools currently display shading over elements when selected.

I want to do this preferably in Chrome. Is there any way to add a listener? I played with the chrome.contextMenus.create but this does not give you access to the page, or tell you where you’re at. The selectedText in there is useless to go back at a later date to the same DOM element.

Does anyone know of an API that allows you to know where the mouse is over?

Note: I do not have access to the page. i.e. the reason for this as an extension is because I am inspecting a 3rd party page, not one I have control over.

  • 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-23T10:30:47+00:00Added an answer on May 23, 2026 at 10:30 am

    It’s quite a big job. With jQuery you can style the element that the mouse is hovered over like this:

    $("*").not("body, html").hover(function(e) {
       $(this).css("border", "1px solid #000"); 
       e.stopPropagation();
    }, function(e) {
       $(this).css("border", "0px"); 
       e.stopPropagation();
    });
    

    To get the xPath expresson is something you would have to make yourself, though you might find firebug’s implementation of it a useful resource.

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

Sidebar

Related Questions

I need ability to display content in Hex View, like this from WinHex Offset
I need the ability to run an arbitrary command when I try and commit
I need the ability to use custom locks at a session level (outside the
i am working on a small project that i need the ability to let
I have an app using a SQLite db, and I need the ability for
I was in need of the ability to create a PDF Envelope, and hadn't
Any recommended crypto libraries for Java. What I need is the ability to parse
I need to add the ability for users of my software to select records
I need to have the ability to use superscripts asnd subscripts in a QLineEdit
is it possible to use Paperclip without a model? I just need the ability

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.