Home > Article > Web Front-end > JavaScript Alert general beautification class_javascript skills
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.