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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:19:30+00:00 2026-06-03T20:19:30+00:00

EDIT: This question can be summed up as follows: How can two separate html

  • 0

EDIT: This question can be summed up as follows: How can two separate html pages, in separate windows, exchange information asynchronously?


For a class project, I have to build a web-based chat client. The professor provided a working server.

I have a portion of it up and running– any connected users can send messages to the server, and it will be relayed to all connected users and appear in their main chat window, chatroom-style.

However, the client is additionally required to have the option of sending/receiving private messages. If a private message is sent or received, a new window is opened, showing a chat interface for communication only with that user. Any future private messages sent/received by the client to/from that user will appear in this window instead of the main chatroom.

I’m at a complete loss. Having received a private message, how can I open a new window and then continue to communicate with that window? If more private messages are received from that user through the main window’s websocket connection, they must be sent to that window, and if messages are sent from that window to that other user, they must be relayed through the main window’s websocket connection.

How can this be done, if it can be done at all?

  • 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-03T20:19:32+00:00Added an answer on June 3, 2026 at 8:19 pm

    window.open returns the window instance belonging to the newly opened window. If the address opened in the new window acceptably falls in the same origin policy, you can modify it and its DOM just like you’d be able to modify the currently active window.

    var w,
        someElement;
    w = window.open('somepage.html', 'some window name', 'width=300,height=200');
    someElement = w.document.getElementById('some-element-id');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT This question can be understood in two ways, and the optimal answer is
G'day, Edit: While this question covers a situation that can arise in programming a
EDIT: This question is solved, but I can't accept my own answer just yet.
Now that 4.0 is public, I can edit this question and ask it again.
EDIT This question has been closed on SO and reposted on ServerFault https://serverfault.com/questions/333168/how-can-i-make-my-ssis-process-consume-more-resources-and-run-faster I
Edit This question has gone through a few iterations by now, so feel free
EDIT: This question is a duplicate of What is the difference between managed and
EDIT: This question was initially too general, I think. So What I really need
EDIT: This question is about finding definitive reference to MySQL syntax on SELECT modifying
[EDIT] This question is how do I do atomic changes to entity beans with

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.