18 tips for HTML

Source: Internet
Author: User

1. <script language = "JavaScript">
Alert ("! ");
Open new window

Window. Location. href = "<% = data_tablename %> list. asp? Typeid = <% = typeid %> ";

Window. Close ();
</SCRIPT>
2. Invalid controls
<Input disabled type = "button" value = "delete" name = "btndelete" class = clsbtn onclick = "setdelete ()">

3. Value of the variable in the string audname
SQL = "select isinuse from" & audname &""

4. Expression of variable and string combination
"& Data_tablename &" ID
= "<% = Data_tablename %> list. asp? Typeid = <% = typeid %>"
<Form name = "form1" method = "Post" Action = "/public/demand. asp? Tablenamelen = <% = tablename %> ">
SQL = "select * From tablecolumntype where tablecolumntypename = '" & tablename1 & "/page generation '"
Pagesql = "select * From pagebuild where pagebuildtypeid like '%" & SESSION ("A") & "____' and pagebuildname = 'foreground selection list display '"
Datalistsql = "select * from" & tablename1 & "where" & request. Form ("select") & "= '" & request. Form ("textfield ")&"'"

 

5. Number of read Arrays
Ubound (XXX ())

6. The condition control is invalid.
<Input <% if SESSION ("backreguserrole") = "itgo5_backregusertype_1001" then response. write "disabled" %> type = "Submit" name = "btnpub" value = "" class = clsbtn>

7. asp check box values
Request. Form ("checkbox") (I)
Request. Form ("checkbox"). Count

8. Update expression
Updatapubsql = "Update" & data_tablename & "set isinuse = 1 where" & data_tablename & "id = '" & request. Form ("checkbox") (I )&"'"

9. Hide controls
<Input type = hidden name = "text type =" text ">

10. No form parameter transfer between files

1) In javascript:
Pass: function radiochange1 (){
Window. Open ("sendmail_bottom.asp? Sneda = cyykkh & Rega = select mememail from reguser where regusertypeid = 'itgo5 _ regusertype_1002 '", target =" mainframe ");
}
2) Asp:
Response. Redirect "mailmodify. asp? Sendid = "& request. Form (" checkbox ") (1 )&""

Receiving: Request ("sneda"), request ("Rega ")

11. Multi-line text box value display
<Textarea name = "textfield" Cols = "60" rows = "6"> <% = myrs ("contentmail") %> </textarea>

12. Delete selected records

If request. Form ("checkbox"). Count = 0 then
Response. Write "must be marked on the edited data! "
Else
Set myrc = server. Createobject ("ADODB. Connection ")
Myrc. open application ("conn ")
For I = 1 to request. Form ("checkbox"). Count
Delsql = "delete Sendmail where sendmailid = '" & request. Form ("checkbox") (I )&"'"
Myrc.exe cute (delsql)
Next
End if

13. Refresh the page

Document. Reload ()

14. Block Ctrl + n
<Body onkeydown = 'if (event. keycode = 78 & event. ctrlkey) return false; '>

15. Simplest print button
<Input type = button onclick = self. Print () value = print>

16 open the system content with a link
<Style type = text/CSS> body {
Font-size: 9pt; color: #000000; font-family: verdana
}
Table {
Font-size: 9pt; color: #000000; font-family: verdana
}
</Style>
<P> <a href = "file: //: {208d2c60-3aea-1069-a2d7-08002b30309d }"
Target = _ blank> network neighbors </a> </P>
<P> <a href = "file: //: {20d04fe0-3aea-1069-a2d8-08002b30309d }"
Target = _ blank> my computer </a> </P>
<P> <a href = "file: //: {2017d8fba-ad25-11d0-98a8-0800361b1103 }"
Target = _ blank> my documents </a> </P>
<P> <a href = "file: //: {645ff040-5081-101b-9f08-00aa002f954e }"
Target = _ blank> recycle bin </a> </P>
<P> <
Href = "file: //: {20d04fe0-3aea-1069-a2d8-08002b30309d}/: {21ec2020-3aea-1069-a2dd-08002b30309d }"
Target = _ blank> Control Panel </a> </P>

17 unreadable input box
<Input style = "border: # ffffff; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; Background-color: # ffffff; font-family:; font-size: 9pt; "type = text value = Enter Text>

18. Click Local to open my computer.
<A href = "file: // :{ 20d04fe0-3aea-1069-a2d8-08002b30309d}" target = "_ blank"> my computer </a> <br> <a href = "file: ///: {208d2c60-3aea-1069-a2d7-08002b30309d} "target =" _ blank "> network neighbors </a> <br> <a href =" file :///:: {645ff040-5081-101b-9f08-00aa002f954e} "target =" _ blank "> recycle bin </a> <br> <a href =" file :///:: {7007acc7-3202-11d1-aad2-00805fc1270e} "target =" _ blank "> network and dial-up connections </a> <br> <a href =" file :///:: {D20EA4E1-3957-11d2-A40B-0C5020524153} "target =" _ blank "> Administrative Tools </a> <br> <a href =" file :///:: {2227a280-3aea-1069-a2de-08002b30309d} "target =" _ blank "> printer </a> <br> <a href =" file :///:: {D6277990-4C6A-11CF-8D87-00AA0060F5BF} "target =" _ blank "> scheduled tasks </a> <br> <a href =" file :///:: {D20EA4E1-3957-11d2-A40B-0C5020524152} "target =" _ blank "> font </a>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.