Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the pop-up window of the home page by JavaScript

Shulou Source: shulou.com Published: 2022-06-01 04:52:45 09月22日 Update

This article mainly introduces JavaScript how to achieve the home page pop-up window, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

JavaScript Home Page Pop-up window skills

Pop-up in the middle of the window

Window.open ("http://www.cctv.com","","width=400,height=240,top="+(screen.availHeight-240)/2+",left="+(screen.availWidth-400)/2);============function WinOpen () {msg=open (", "DisplayWindow", "toolbar=no,directories=no,menubar=no"); msg.*** ("Hello!"); msg.*** ("Cool! this is the window opened by JavaScript!");}

Tags: Articles home page value interest at the same time skills more friends knowledge editing industry information information channels channels reference learning help support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno NVidia Microsoft Shulou Information