javascript - Center position of current screen position -
is there option find center position (top , left) of actual screen position?
my main goal show div in center of screen no matter scroll or click
you can use window
attributes center coordinates in pure javascript:
var x = window.innerwidth / 2; var y = window.innerheight / 2;
Comments
Post a Comment