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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:13:28+00:00 2026-05-20T10:13:28+00:00

I am writing a Safari extension. It needs to overlay content from another source

  • 0

I am writing a Safari extension. It needs to overlay content from another source on top of the page when I click a button in the toolbar.

How do I position it at the top left corner of the browser, on top of the content? When I click the close button the iframe should be destroyed, displaying the content that was previously covered up?

Thanks!

  • 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-20T10:13:29+00:00Added an answer on May 20, 2026 at 10:13 am

    You can put the CSS either inline or in a stylesheet.

    <iframe src="http://path.to/content" style="width: 200px; height: 100px; 
    position: absolute; top: 0; left: 0; z-index: 100000;" id="overlay_frame"></iframe>
    

    Then, for your “close” link, you have a choice of either completely destroying the iframe:

    <a href="#" onClick="document.getElementById('overlay_frame').removeChild( 
    document.getElementById('overlay_frame').childNodes[0] );">Close</a>
    

    or just hiding it:

    <a href="#" onClick="document.getElementById('overlay_frame').style.display='none';">Close</a>
    

    Personally, I’d just hide it so you could re-use it again by changing the source:

    <a href="#" onClick="document.getElementById('overlay_frame').src='http://link.to/something/else';">Change Frame</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Safari Extension that adds some functionality to a web page that
I'm writing a simple Safari Extension, and I'm trying to figure out how to
I was able to find a page from Safari Books Online that provides a
Writing a JSP page, what exactly does the <c:out> do? I've noticed that the
I'm writing a simple splash page for a client to hold a like box
anone knows how to remove the bar at the top and bottom on safari
I'm writing a login page for a mobile version of my webapp and I
Background I am writing and using a very simple CGI-based (Perl) content management tool
I'm writing an application, in which the user needs to solve a recaptcha image
I decide to make my own neverending scroll page which suits exactly my needs

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.