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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:55:59+00:00 2026-05-13T22:55:59+00:00

This is the situation. I’m trying to provide a service where someone embedds an

  • 0

This is the situation. I’m trying to provide a service where someone embedds an iframe on their website with a form in it. At the end when an ajax request comes in again I want to pop a new window with a thank you note in it. window.open does not work and my guess is because the window object belongs to the page that embedds it and not the iframe and would then be considered cross-site scripting. Is there another way of doing this?

A thought I had was, that I can create links with target=”_new” in my iframe, and clicking that would actually pop another window. Maybe I could create this link and “click”/trigger it with javascript?

I do have control over what the user embedds so potentially I could include a script there too, but the less code there, the better obviously.

Any takes?

  • 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-13T22:56:00+00:00Added an answer on May 13, 2026 at 10:56 pm

    window.open does not work and my guess is because the window object belongs to the page that embeds it

    I don’t think so. window as seen by your script will generally be the window object of the document inside the iframe.

    More typically, a window.open on an XMLHttpRequest completion will be blocked by browsers’ built-in pop-up-blockers. They usually only allow new windows to be opened in direct response to user interaction (typically, in the onclick event handler).

    Maybe I could create this link and “click”/trigger it with javascript?

    No, otherwise everyone would be doing that to circumvent blockers!

    If you’re starting an XHR and you know you’re going to need a pop-up in the future you’ll have to open it now and put some filler content in until the XHR returns, at which point you can update its contents.

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

Sidebar

Related Questions

This situation arises from someone wanting to create their own pages in their web
I have this situation: There are a login page with a login form (form
Ok this situation is a bit difficult. But I am trying to embed a
I'm finding in this situation: I've a legacy service (written in C#) that just
This situation happens a little often, your whole repository has 2MB and then someone
I have this situation: I am trying to remove an old avatar image for
In this situation I am trying to perform a data import from an XML
got this situation. Reports habtm users. So Im trying to paginate just the Reports
In this situation I have two models, Comment and Score. The relationship is defined
I have this situation: { float foo[10]; for (int i = 0; i <

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.