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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:42:37+00:00 2026-06-01T09:42:37+00:00

This is my Html.I need to open (same page)Page1.html in a new window, when

  • 0

This is my Html.I need to open (same page)Page1.html in a new window, when I clicks in Page1.html.(First window)
So I used window.open() for acheving this.Its works and produces Second Window
But I also need to open same page(Page1.html) from the second window which was created from the First Window. So I used window.open() it is loading the Page1.html in the same window. It won’t create any other new windows. In practical scenario, I need to create a new window with B.html from A.html. Also from Second Window (B.html) I need to create another window with C.html. Currently B will open, but C will not create any new window, It simply loads C.html in second window which replaces B.html

  <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
    </head>
    <body>
        <script type="text/javascript">
            function ShowPage(pageName) {
                window.open(pageName, null, 'height=400,width=800,status=yes,toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes');
            }
        </script>
        <a id="page1.htm" onclick="ShowPage(this.id);">Click Me</a>
    </body>
    </html>
  • 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-01T09:42:38+00:00Added an answer on June 1, 2026 at 9:42 am

    Have a new name for every window you open, because once a “named” window is already open, any window.open that uses that same name opens the content in that same window.

    OR

    set the name to "_blank" to open to a new window every time.

    the name of the window can be set via the second parameter (instead of null).


    According to this MDN article

    If a window with the name strWindowName already exists, then strUrl is loaded into the existing window. In this case the return value of the method is the existing window and strWindowFeatures is ignored. Providing an empty string for strUrl is a way to get a reference to an open window by its name without changing the window’s location. To open a new window on every call of window.open(), use the special value _blank for strWindowName.

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

Sidebar

Related Questions

Consider this page @ http://www.bloodbone.ws/screwed.html I need to be able to have the a.grow
I am developing a website in which i need to open a HTML page
Here in this html i need to get the image name arrow_down using jquery
This is my table for a mysql database. http://the44.simorasic.com/cages.html I need to show the
I need a Zend Framework start up guide PDF file. http://www.mikaelkael.fr/Zend-Framework-1-8-x-documentation.html this is an
I need to be able to pass HTML data into Outlook like this: MailMessage
I need to create lines like this: <li data-target=c1.html><span>I. </span><span>Het tijdperk der goden</span></li> I
I am having a Html hyperlink. I need to link this hyperlink to another
I have this in my controller. I need my view to generate some HTML,
HTML is <a>ref</a> I need to get <a>ref</a>text How can i do this? $('a').append('text')

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.