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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:00:21+00:00 2026-06-01T17:00:21+00:00

I want to develop a chrome extension which docks a new panel to the

  • 0

I want to develop a chrome extension which docks a new panel to the bottom of current web page. The GUI should be something like Developer tools.

I tried to inject an iframe to web page like this:

$('body').append(
    '<iframe src="'
    + chrome.extension.getURL('panel.html')
    + '" style="position: fixed; width: 100%; bottom: 0px; height: 300px; display: block;"></iframe>');

The iframe can be seen, but it covers the content of the main page.
How can I solve the problem? Hope someone can give me some suggestions or simple examples…

  • 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-01T17:00:22+00:00Added an answer on June 1, 2026 at 5:00 pm

    So, with this you’re not adjusting the underlying page so that the bottom 300px of the page isn’t covered up from your panel. Here is some javascript to bump up the bottom of the page 300px:

    var html = document.documentElement;
    //make sure <html> to the top of the page:
    html.style.position = 'relative';
    html.style.top = '0px';
    
    window.onresize = function resizeFunc(){
      html.style.height = (window.innerHeight - 300) + 'px';
    };
    window.onresize();
    

    Also, instead of just appending to the body like this: $('body').append(, I suggest using document.documentElement instead of body, and even using vanilla javascript for something so basic, this would look like:

    var iframe = document.createElement('iframe');
    iframe.style = '<your style code above>';
    iframe.src = chrome.extension.getURL('panel.html');
    document.documentElement.appendChild(iframe);
    

    I think this will solve your problem… not sure if your page has something unique that’s causing an error

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

Sidebar

Related Questions

I want to develop a simple Chrome extension in C++, using NPAPI, which does
i want to develop an extension in Chrome that will display an image above
I want to develop a web application which makes it possible to browse an
I want develop some web product with using javascript 3d library like three.js But
I want to develop a web application, like an online scheduler. (Yes I know
I want to develop a photo browser application in Windows platfrom, the UI should
I'm trying to develop a Google Chrome extension. When the user clicks the extension
I want to develop a web app using html5, js. One of the feature
I want to develop an Android application which can run on all ,screen type
I want to develop a simple windows manager, but do not know which library

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.