Home > Web Front-end > JS Tutorial > JavaScript Alert general beautification class_javascript skills

JavaScript Alert general beautification class_javascript skills

WBOY
Release: 2016-05-16 18:40:55
Original
1524 people have browsed it

function sAlert(msg,boxtype,func,msgtitle)
sAlert('information content',1,'','information title')
@msg: Prompt information content
@boxtype: 1 is a pop-up box , 2 is the confirmation box, 3 is the prompt box
@func: the function executed when confirming is clicked
@title: the text content of the title of the information box
Only msg is required, and the following parameters can be omitted. If the middle parameter is empty, use '' or "" in the corresponding position (single or double quotes according to the actual situation)
To call this method, you must add the following code to the head area of ​​each page used.

Copy code The code is as follows:




Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template