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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:37:26+00:00 2026-05-21T09:37:26+00:00

I have a pop-up that allows the opener window to optionally define a callback

  • 0

I have a pop-up that allows the opener window to optionally define a callback function, which if defined will be called when the user is done with the pop-up. Based on the advice I’ve read I’m doing this:

if (window.opener && (typeof window.opener.callbackFunction == 'function')) {
  window.opener.callbackFunction()
}

This works fine in Firefox – when the function is defined, the typeof is “function” as intended. However, in IE8 the typeof is “object” instead. The function is defined normally in the opener, like so:

function callbackFunction() {
  ...
}

Does anybody know why the typeof would be different in IE8? I’m also open to other suggestions as to how to accomplish this. I also tried if (window.opener && window.opener.callbackFunction) but that caused IE8 to blow up when the function wasn’t defined.

  • 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-21T09:37:27+00:00Added an answer on May 21, 2026 at 9:37 am

    You can try

    if ( window.opener && (typeof window.opener.callbackFunction != 'undefined') {
      window.opener.callbackFunction();
    }
    

    I don’t have IE currently so I can not test this but believe it will work.

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

Sidebar

Related Questions

I have created a macro for excel which will pop up form that contains
I have a pop-up window a user logs into, once they are logged in
I have a application that allows a user to choose some parameters for a
I am creating a popup chat window that allows the users to pop the
I have a tell a friend pop up email form that allows users to
I have a website with a button that opens up a pop-up window with
I have a clientaccesspolicy.xml that allows everything. I use javascript to pop up a
I have got this script that works fine, that allows a user to vote,
I have a modal which displays a UIImagePicker and allows the user to take
I have a pop up form that i wish to close on successfull submit

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.