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

JavaScript Alert general beautification class_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:40:551493browse

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:




Statement:
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