The js Code in the confirmation dialog box is displayed before deletion. The js Code in the dialog box is displayed.
One type:
Two types:
Three types:
Function delete_confirm (){If (window. confirm ('Are you sure you want to cancel the transaction? ')){Alert ("OK ");Return true;} Else {Alert ("cancel ");Return false;}}
Four types:
When JS deletes a
Yii-custom deletion confirmation dialog box (zyd). Simple and stylish. It is suitable for cool people. Do not miss out on fashion. I hope this article will help you with your knowledge.
1. Link
The Code is as follows:
'C _ 06c', 'onclick' => 'Return art_del_confirm ("/company/msglog/delete/id /'. $ data-> zml_id. '"," Are you sure you want to delete this message? ") ')?>
2. jq
The
I think this question is frequently asked. In fact, this is not a difficult issue. I have sorted out the index myself for reference by cainiao. You can refer to the message dialog box and confirmation dialog box displayed in ASP.
The simplest pop-up message box method requires only one code:
Response. Write ("javascript: alert ('you're a dumb! ')");
Or:
. Attributes. Add ("onclike", "return confirm ('Ar
Feel this problem is frequently asked, in fact, this is not a difficult problem ah, the index of their own tidy up a bit, convenient rookie reference it. Pop-up message dialog box in ASP, the confirmation dialog box can be referenced.
The simplest way to pop up a message box is to have just one sentence of code:
Response.Write (' You are a big fool! ') ("Javascript:alert");
Or:
. Attributes.Add ("Onclik
If there is a section of code that produces multiple options, how do we get a click to delete a value in an item?Listif (themelist!=null) {for (Theme theme:themelist) {%>Href= "Topic_modify.jsp?tname=nbsp;nbsp;nbsp;nbsp; href= "#"Onclick= "Forward (' }}%>We can add an onclick event to the A-tag element, create a function, set the arguments at the time of the dynamic generation, notice that the argument needs quotes, or else it will be considered a var
The three methods described in this article are based on the javascriptconfirm Prompt confirmation box. They are only written in different places. If you need them, refer to the confirm () method.
The confirm () method is used to display a dialog box with the specified message and OK and cancel buttons.
Note: If you click OK, confirm () returns true. If you click Cancel, confirm () returns false.
One type:
The
Confirmation code generation file checknum_session.php
?Header ("Content-type:image/png");Define header, declare picture file, preferably PNG, no copyright disturbance;To generate a new four-bit integer verification codeSession_Start ()//open session;$authnum _session = ';$str = ' abcdefghijkmnpqrstuvwxyz1234567890 ';Define the numbers and letters to be displayed on the picture;$l = strlen ($STR); Gets the
Click the javascript code that can be printed without confirmation to print it out. Add the printed content to the code! I don't have a printer!
Function WindowPrint () {if (document. all) {if (parseFloat (window. navigator. appVersion. substr (window. navigator. appVersion. indexOf ("MSIE") + 5, 3) [Ctrl + A select all Note: If you need to introduce external
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.