Klik Prompts "OK" dan "Batalkan" Kotak Prompt
OnClick = '{if (konfirmasi ("apakah Anda pasti akan menghapus? Operasi ini tidak akan dipulihkan!")) {returnTrue;} returnFalse;}'
Hapus file .ldb
<%
Application.contents.removeall ()
%>
Konversi html ke format teks biasa
<%
FunctionRemoveHTML (strhtml)
DimoBjregexp, pertandingan, pertandingan
Setobjregexp = newregexp
objregexp.ignorecase = true
objregexp.global = true
'Pilih <>
objregexp.pattern = "<.+?>"
'Buatlah cocok
SetMatches = objregexp.execute (strhtml)
'Bepergian melalui koleksi yang cocok dan ganti item yang cocok
ForeachMatchInmatches
strhtml = ganti (strhtml, match.value, "")
Berikutnya
Hapus html = strhtml
Setobjregexp = tidak ada
Fungsi endfungsi
%>
Panggilan
<%= RemoveHTML (bidang Anda)%>
25. Alamat halaman saat ini
<%
response.write "http: //" & request.serverVariable ("server_name") & request.serverVariables ("script_name")
%>