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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:09:18+00:00 2026-06-03T04:09:18+00:00

I’m working on an alternate reality game, and I’m tasked with creating a level

  • 0

I’m working on an alternate reality game, and I’m tasked with creating a level where player’s must focus on answering math questions within a certain amount of time while closing pop ups. The goal is to have the pop ups spawn their own pop ups, so that things quickly get out of control if the user ignores them for too long. And to ensure that people don’t leave their pop up blocker on, the math problems will be in pop ups too. Unfortunately, I don’t know Javascript, so I’ve been relying on copying code off the web.

My plan is to have a base page, which pops up a page called focus.html every 5 seconds (or so, still deciding on the time). focus.html will them, every five seconds, pop up another focus.html. So if you leave one open for five seconds, you’ll have two to close, and so on. In theory.

But for some reason, the pop ups don’t create their own pop ups. If I open the base page, focus.html only pops up when the base page calls for it. And if I open focus.html manually, the pop ups only occur from the copy of focus.html that is in the main browser as well.

The code for focus.html:

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!--    <link rel="stylesheet" href="game.css" type="text/css" media="screen" /> -->

    <title>Focus</title>


    <SCRIPT LANGUAGE="JavaScript">

        <!-- Begin
        closetime = 0; // Close window after __ number of seconds?
        // 0 = do not close, anything else = number of seconds

        function Start1(URL1, WIDTH, HEIGHT) {
            windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
            preview = window.open(URL1, "preview", windowprops);
            if (closetime) {
                setTimeout("preview.close();", closetime*1000);
            }
        }


        function doPopup1() {
            url1 = "focus.html";
            width = 500;  // width of window in pixels
            height = 500; // height of window in pixels
            delay = 5;    // time in seconds before popup opens
            timer = setTimeout("Start1(url1, width, height)", delay*1000);
        }   

        function doPopup2() {
            url1 = "focus.html";
            width = 500;  // width of window in pixels
            height = 500; // height of window in pixels
            delay = 10;    // time in seconds before popup opens
            timer = setTimeout("Start1(url1, width, height)", delay*1000);
        }   

                    function doPopup3() {
            url1 = "focus.html";
            width = 500;  // width of window in pixels
            height = 500; // height of window in pixels
            delay = 15;    // time in seconds before popup opens
            timer = setTimeout("Start1(url1, width, height)", delay*1000);
        }   



        //  End -->
    </script>

</head>



<body OnLoad="doPopup1(); doPopup2(); doPopup3();">

    <br />

    <p>Remember to FOCUS.</p>


</body>

  • 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-03T04:09:19+00:00Added an answer on June 3, 2026 at 4:09 am
    preview = window.open(URL1, "preview", windowprops);
    

    When the second window is opened, it will have the same name as the first, so you will never be able to open more than one. If you do not pass a name (empty string) you will be able to open many.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is

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.