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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:56:09+00:00 2026-06-04T01:56:09+00:00

Morning All, I was hoping someone could help or provide some sample code for

  • 0

Morning All,

I was hoping someone could help or provide some sample code for me in refe to the following. I not too sure if i can simply set the asp.net (Visual Studio 2010) properties or if i need some java script to complete my task.

I have a web page with a link on it that when users click it opens to a new web page via the _Blank command.

What i would like to do is have this page open on a really small scale (640px X 480px) and layerd on top of the main webpage. This small page essentially just holds a gridview with items listed for documentation.

I have looked around the internet as i think this would be best done by using JavaScript in the smaller web page but i cant get this to work successfully.

I have found a sample and need to try and tweak this but have been unsuccessfull.

Here is the sample code i have….

    <script type="text/javascript" language="javascript">
    window.onload = function () {
        var w = window.open("about:blank", "main", "width=640,height=480", true)
        window.opener = "main";
        window.open("", "_parent", "");
        w.opener.close();
    }
    </script>

My smaller web page is named uploadview.aspx

Any help is advenace is much appriechiated.

Regards
Betty

  • 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-04T01:56:10+00:00Added an answer on June 4, 2026 at 1:56 am

    You got to specify window URL in first param of window.open, and must have button to invoke that JavaScript, it’s not clear why do you do that on page load event. Anyway, here is the example to open window on some link click

      <a href="#" onclick="OpenUploadView()">Open Upload View</a>
      <script type="text/javascript">
    
        function OpenUploadView() {
          window.open("uploadview.aspx?param=1", "_blank", "width=640,height=480", true);
        }
    
      </script>
    

    You can also pass parameters to that aspx page like shown above.

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

Sidebar

Related Questions

Morning all, I have a simple question that I could do with some help
Good Morning All, I have code similar to the following try{ using(var tx =
Morning all, I've gone and told a customer I could migrate some of their
Morning all. I have the following javascript in my code in front <script type=text/javascript
I've been searching all morning and unfortunately I'm not sure what the techincal term
I encountered some weird behaviour today and I was hoping someone could shed some
I have been struggling with this all morning and was hoping to get some
Good morning all, I'm sure this is a gimme, but I have no idea
Morning all. I have the following method that I use to to try and
Good Morning All! I have been developing a project for some time in which

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.