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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:41:32+00:00 2026-05-25T02:41:32+00:00

If a tag like DIV, MARQUEE or IMG is inserted, it can be selected

  • 0

If a tag like DIV, MARQUEE or IMG is inserted, it can be selected when clicking anywhere in the tag area. However, if a TABLE is inserted, it can only be selected when clicking on the border of tag area. I have searched for the possible event (onclick, keydown) defined for DIV, but unfortunately no relevant Javascript code was found. DesignMode is used for the editor. Anyone knows how to make TABLE easier to be selected just like a 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-25T02:41:33+00:00Added an answer on May 25, 2026 at 2:41 am

    You can do it using a ControlRange and selecting it. Assuming the table element is stored in a variable called “table”:

    table.onclick = function() {
        if (document.selection.type != "Control") {
            var range = document.body.createControlRange();
            range.add(this);
            range.select();
        }
    };
    

    jsFiddle: http://jsfiddle.net/DTK8j/

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

Sidebar

Related Questions

suppose i have one div and div has img tag like <div><img src='img1.png'/></div> so
I have a div tag declared like this: <div id=carRight style=position:absolute; left:600px; top:170px;> <img
I have a div tag like so <div id=mainHolder> <span>asjlkdasjdka</span> <img src='image.jpg' /> <input
I have a scrollable div tag (overflow). Now I'd like to use mouse to
i want to get an ending html tag like </EM> only if somewhere before
Well I want to render a self closing tag say <img> tag like this
Without use of marquee tag I want to show news like below code.I want
I have to put microdata (schema.org) in html tag like this: <div class=list_item itemtype=http://schema.org/Hotel
What is a good way to replace an HTML tag like: Old : <div
If a div tag looks like: <div class=class1 class2>blah</div> Isn't this suppose to still

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.