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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:51:43+00:00 2026-06-08T12:51:43+00:00

I should preface this with the fact that I know virtually nothing about javascript

  • 0

I should preface this with the fact that I know virtually nothing about javascript and, apart from very rare situations like this, I don’t really plan on using it much. So please forgive me for not having tried to learn more about it in order to try and solve this problem for myself.

The Situation:

I frequently like to make use of popout browser windows. To do this I created a bookmark in my browser that contains this small piece of Javascript I copied from somewhere – I can’t remember where – and adapted to suit my screen:

javascript:%20var%20WindowPopup%20=%20window.open(window.location.href,'PopUp','left=1150,top=830,width=660,height=410,scrollbars=yes,location=no,status=no');

The Problem:

As things stand, when there is an existing popout window and I select the bookmark again, the same popout window is re-used if I’m at the same site, otherwise a new popout window is created. But there are many occasions when I would like to override this default behaviour.

Three Qustions:

  1. How can I force popouts to always open in a new window?

  2. How can I force popouts to always re-use an existing window?

  3. Combining the previous two options: is it possible to detect if there is an existing popout window and prompt me as to whether I want to re-use it or open a new one?

Your help will be greatly appreciated.

  • 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-08T12:51:45+00:00Added an answer on June 8, 2026 at 12:51 pm

    The String “PopUp” in your bookmarklet is the name of your popup window. If you create another popup window using the same name, the already opened window will be reused.
    If you want to get around this behavior, you will have to create a popup window with a unique name every time.

    The following bookmarklet code will append a timestamp to the name of the popup window creating a unique name:

    javascript:%20var%20WindowPopup%20=%20window.open(window.location.href,'PopUp'+Date.now(),'left=1150,top=830,width=660,height=410,scrollbars=yes,location=no,status=no'); 
    

    This should work unless you’re opening multiple popups within a millisecond.

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

Sidebar

Related Questions

To preface this question I should say I know very little about database efficiency
I should preface this question by saying that I am new to JavaServer Pages.
I will preface this question with the disclaimer that I know there are many
I want to preface this question with the fact that I am a student
Let me preface this question with I know this is not something that I
I'll preface this question by mentioning that while I'm far from a regular expressions
I should preface this by saying that I am an undergrad CS student with
I should preface this by stating that I'm working with VB6 & RegExp I'm
Preface : I'm honestly not sure if this should be on StackOverflow, SuperUser or
Let me preface this (Because I know I'll get this eventually in the responses)

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.