This article mainly introduces how to use JavaScript to pop up a new window and control the window moving to a specified position. It involves javascript operation skills for the window to pop up and is very useful, for more information, see the example in this article, which describes how to bring up a new window in JavaScript and control the window moving to a specified position. Share it with you for your reference. The details are as follows:
The following JS Code uses window. open to pop up a new window, and then uses the JS Code control window to move to the specified position.
Script function openwin({{mywindow={{open('', ''width}200,height%100'{my}}doc ument. write ("This is 'mywindow'
");} Function moveWin () {myWindow. moveTo (0, 0); myWindow. focus ();} script
I hope this article will help you design javascript programs.