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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:57:29+00:00 2026-05-26T23:57:29+00:00

I have a pop up window function where when a button is clicked the

  • 0

I have a pop up window function where when a button is clicked the window does pop up. Now the pop up window does not display anything, for a test I want the pop up window to display the word “Session”. But I don’t know how to do this.

Am I supposed to write the word “Session” in another page and link to that page or is it possible to write the word “Session” on the same page and link it to that section of the page?

I want the latter to happen but I don’t know how to do it.

Below is my code:

<head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <title>Create a Session</title>
        <script type="text/javascript">

                    function openSessionPopup (session) {
 window.open(session,
 'window',
 'width=500,height=500,scrollbars=yes,status=no');
 }

</script>
</head>

<body>

<form action="create_session.php" method="post" name="sessionform">
<p><input class="questionBtn" type="button" value="Prepare Questions" name="prequestion" onClick="openSessionPopup(this.href); return false"  /></p>      
</form>

</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-05-26T23:57:30+00:00Added an answer on May 26, 2026 at 11:57 pm

    Try something like this:

    var win = window.open("about:blank", null, "width=400,height=300");
    var doc = win.document;
    doc.open("text/html");
    doc.write("Session");
    doc.close();
    

    Try it on JSFiddle.

    Alternatively, you can create a new page with the content you want and open that:

    window.open("my-new-page.html", null, "width=400,height=300");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function that opens a pop up window: function popUp(url) { leftPos
I have a pop-up window from an exiting application that I want to trap
I have a website with a button that opens up a pop-up window with
I have a script that I want to pop a window after 5 page
I have a pop-up window a user logs into, once they are logged in
I have the following JavaScript code to pop up a window in Internet Explorer.
I have a pop up window which lists images using a form and radio
I want to provide a link to close the fancybox pop-up window. Here is
My pop up window is not appearing. It is suppose to appear after my
I have a button known as Prepare Questions. Now when I click on this

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.