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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:45:11+00:00 2026-05-31T00:45:11+00:00

I have a onclick event on a link inwhich window.open for a url is

  • 0

I have a onclick event on a link inwhich window.open for a url is executed , I have also given the custom width and height for it, but is not accepting it and pop window is displayed with different width and height.. can someone guide me what must be wrong with that

my window.open syntax is as follows

onclick='var myW=window.open ("http://www.google.co.jp/","mywindow","location=1,toolbar=1,menubar=1,resizable=1,width=846,height=786");

Also how to change the display position of pop window in the screen?

NOTE: AFTER ALL THE REPLIES Being Positive with my code.. I tried it
and found after thinking about it that whatever size I was giving in
parameter the browser taking it more than that… May be thats due to
resolution….

  • 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-31T00:45:12+00:00Added an answer on May 31, 2026 at 12:45 am

    your code is working fine :

    <html>
    <head>
    </head>
    <body>
    <input type="button" value="cl" onclick='var myW=window.open 
    
    ("http://www.google.co.jp/","mywindow","location=1,toolbar=1,menubar=1,resizable=1,width=200,height=200");'>
    </body>
    </html>
    

    for more check this:- http://www.w3schools.com/jsref/met_win_open.asp
    to window position a pop up window just after it opens use:-

    window.moveTo(50,50);//your window object:-
    

    The parameters for the moveTo are the left position followed by the top position for the top left corner of the window.

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

Sidebar

Related Questions

I have clickable row, that will fire link onclick event, but trigger() cause a
On Window 's load, every DD element inside Quote_App should have an onCLick event
I have an asp button with no onclick event but only onclientclick. This call
I have a onclick event that is like: public void OnMyButton_Click(object sender, EventArgs e)
I have a div which I have attached an onclick event to. in this
I have a gridview control that has on onclick event bound to every cell.
I have a strange problem where an onclick event on an input image is
I have a little javascript function which is attached to an onClick event of
I have a button. Its OnClick event calls a procedure which destroys the button,
If you have a JSF <h:commandLink> (which uses the onclick event of an <a>

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.