You can see on many Web pages that a new window is displayed when you click somewhere on the web page, and you can drag it on the screen at will. This article introduces the javascript pop-up drag window, if you have any need, you can refer to the pop-up window that can be dragged. it can be seen on many Web pages. it is very user-friendly. the pop-up and drag windows can be implemented through a piece of javascript code below, if you don't talk much about it, paste the code directly.
Pop-up window that can be dragged Script function showPopup () // The pop-up layer {var objDiv = document. getElementById ("popDiv"); objDiv. style. top = "50px"; // set the distance between the pop-up layer and the upper boundary. style. left = "200px"; // set the distance between the pop-up layer and the left boundary to objDiv. style. width = "300px"; // set the width of the pop-up layer objDiv. style. height = "200px"; // set the height of the pop-up layer objDiv. style. visibility = "visible";} function hidePopup () // Close the layer {var objDiv = document. getElementById ("popDiv"); objDiv. style. visibility = "hidden";} script
Close modification operation