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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:34:20+00:00 2026-06-03T01:34:20+00:00

I have a page with an iframe, and inside this iframe are some links

  • 0

I have a page with an iframe, and inside this iframe are some links that should open a modal window in the parent window. The thing is I dont have access to put code into the parent window. I just have access to this iframe. Is there a way this could be done with jquery with such limitations?

Thank you!

  • 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-03T01:34:21+00:00Added an answer on June 3, 2026 at 1:34 am

    You can use JQuery plugin SimpleModal

    There’s an option called “appendTo”, where you can tell where do you put your Modal. The only problem with that approach is that the modal’s overlay appear with iframe’s size, so you must give it your desired width and height after you open it.

    $('#div-modal').modal({
        appendTo: $(window.parent.document).find('body'),
        overlayCss: {backgroundColor:"#333"}, // Optional overlay style
        overlayClose:true, 
    });
    // Set overlay's width
    $(window.parent.document).find('#simplemodal-overlay').css('width', '100%');
    

    If the div you want to open as a modal is in your parent window, you could replace $('#div-modal') with $(window.parent.document).find('#div-modal')

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

Sidebar

Related Questions

I have an iframe tab which holds php page with various links inside (like
I have some javascript inside an iframe that sends the height of the iframe
i have iframe inside a page, and this iframe contain a submit button which
I have a web page with some javascript inside that will be embedded as
I have a page where I open a modal window. It is really just
I have a page being loaded in an <iframe> . Inside the <iframe> ,
I have an iframe where the web page inside of the iframe runs a
I have a page that loads an external HTML page into an iFrame. There
I have ASP.NET page with an iframe on it for displaying some pdf reports
I have a page which has an Iframe. In that Iframe, there are six

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.