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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:19:37+00:00 2026-05-28T17:19:37+00:00

I have below a javascript function which gets called on click of two separate

  • 0

I have below a javascript function which gets called on click of two separate links provided on a jsp file.

In brief, this functions opens a new popup window. What I want is when I click these two links two new pop up window should open.

But whats happening is this; I click on one link, it opens a new popup window but now I click on second link, it does not open the new popup window instead it is refreshing the old pop-up window (which opened on click of link1) with this link details.

I am not getting how to open two separate pop ups?

function showHelp(orgType) {
var pageLoc = '<%=helpURL%>bin/view/Main/?appSession=<%=request.getSession().getId()%  >&securityToken=<%=appUtility.getSecurityToken(session
   .getId(), login, custId)%>&appurl=<%=java.net.URLEncoder.encode((new java.net.URL(request.getScheme(),ip,request.getServerPort(), "")).toString() + request.getContextPath(), "ISO-8859-1")%>&custType='+custType+'&custName=<%=hostName%>';
 self.open (pageLoc,'ServicePopUp','height=600,width=800,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes'); 

}

  • 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-28T17:19:38+00:00Added an answer on May 28, 2026 at 5:19 pm

    You would need to provide a different name for each of the windows to differentiate them from each other:

    function showHelp(orgType, windowName) {
        ...
        self.open (pageLoc, windowName,'height=600,width=800,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes');
    }
    

    See the extra parameter and where it fits into the open function? You’d need to provide 2 different names for the two links. Hope this helps!

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

Sidebar

Related Questions

Below I have a Json function and some php code which it retrieves. JavaScript
I have a javascript function below to move from select multiple box A which
I have a function below which is called to reload a recaptcha image. It
I have this javascript, jquery function, (below) It gets the text inside each table
I have the below javascript function, which when passed a word such as Department
I have below is the html code for TD which gets appended after matching
I have a website which includes this RSS JavaScript. When I click feed, it
I have a javascript function which get datagrid's header into THEAD tags. This code
I have a javascript function to clear my form which includes a gridview, I
I have a sample application which has something like below. <a href=javascript:{} id=anchorlnk>Go</a> which

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.