T
T
tennessee_honey2018-02-03 23:07:39
JavaScript
tennessee_honey, 2018-02-03 23:07:39

How to make the window open in a small size (Window.open)?

There is such a script

$(document).on("click", "#auth", function () {
  win = window.open("/auth.php, "", "height=430,width=605,top="+((screen.height-430)/2)+",left="+((screen.width-605)/2)+",resizable=no,scrollbars=yes,status=no")
  check();
  return false;
})

And there is actually an auth.php file, and as soon as "Authorization" is pressed on the page, instead of everything working as in the written code, the page opens completely in an enlarged size, what should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kositsyn, 2018-02-04
@alex_keysi

If your code is the same, then there is an error
in it And so everything is correct. A string with a height and width that specifies the size of the new window

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question