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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:49:38+00:00 2026-05-23T14:49:38+00:00

I am trying to use window.open() to pass along some arguments to another page.

  • 0

I am trying to use window.open() to pass along some arguments to another page.

I want the page to be

myPage.html?img=1.jpg

Where once on that page I will use javascript to get the arg and show the image.

However I cannot figure out how to do this with window.open() cause it says the pages does not exist which I can understand.

 window.open('myPage.html?img=1.jpg','_blank')  

Hope this makes sense and I don’t even know if it is possible.

  • 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-23T14:49:39+00:00Added an answer on May 23, 2026 at 2:49 pm

    myPage.html should exist,
    and check the docs on window.open

    to pass vars:

    var variable = "lol";
    var w = window.open("http://example.com");
    w.variable = variable;
    

    or yopu can visit the opeing window:

    var variable = window.opener.variable;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I' trying to use window.pageYOffset & window.scrollMaxY to calculate the current page progress. This
I'm trying to use plupload with mvc2 but the filebrowser-window does not open. my
I'm trying to use window.getSelection to get a string but it's returning an object.
I'm trying to use MODI to OCR a window's program. It works fine for
I'm trying to use pyqt to show a custom QDialog window when a button
I'm trying to use a CallMethodAction bound to a control in a WPF Window,
So I am trying to use a button click to open the next form
I'm trying to use Tim Heuer's FloatableWindow control for a non-modal options window in
Using Google Maps, I am trying to have an info window open with tabs
I'm trying to pass an array into a function and then use the information

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.