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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:05:01+00:00 2026-05-27T07:05:01+00:00

I am working on mvc2 and i’m trying to open from javascript in a

  • 0

I am working on mvc2 and i’m trying to open from javascript in a new window something.
if i only use inside the js function window.open(“action/action/”+param) like this

function(){ 
 window.open("action/action/"+param);
} 

it works perfectly and the browser does not warn me that it is a new popup that i’m opening.
But if i make an ajax call before the window.open, the browser tells me that is a new popup and if i accept it.

if (json.data && json.data.URL)
{
      window.open("action/action/"+param);//opens in a new window only if i accept popups 
}

how can i make it work without the browser considering it as popup?

  • 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-27T07:05:02+00:00Added an answer on May 27, 2026 at 7:05 am

    You can’t popup a window “randomly” it needs to be right after the user has clicked something or did an action so that the browser doesn’t think it’s a random ad popup.

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

Sidebar

Related Questions

I'm working with an MVC2 app that had migrated from an MVC1 app quite
I have an MVC2 web site which I am trying to get working offline
I am working on moving an application from MVC2 ASPX to MVC3 Razor, and
I am new to MVC2.0. I use the below code to capture HTML and
I'm working on an ASP.Net MVC2 application and use the jsTree-Komponent for jQuery to
I'm trying to get Quartz.net working by embedding into my .Net MVC2 application. I
In ASP.NET MVC2 I use OutputCache and the VaryByParam attribute. I got it working
I am working on an MVC2 application and want to set the maxlength attributes
I recently started working with MVC or MVC2 to be more exact. I found
I'm working on a asp.net mvc2 app. I have been using jquery to do

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.