The javascript custom function parameters are passed to the string format, javascript string
User-Defined Function Parameters are passed to the string format.
1: pass with this
2: Default quotation marks
3: escape characters ("represents" Double quotation marks "in html," represents single quotation marks, "directly \" in javascript and Java universal Escape Character Set)
<Html>
The parameters of javascript Functions are complex strings.
If the following format is used:
SetTimeout ("moveElement ()", interval );
Then moveElement () will be a 13-character string, rather than the function value it represents. Therefore, you must end the character string with quotation marks and then use the plus sign to connect the function value represented by moveElement.
Wang Lei [authoritative expert]
Passing javascript string Parameters
<%
Str = "aaa"
Response. write ("<a href =" & chr (34) & "javascript: del ('" & rs ("name") & "')" & chr (34) & "> Delete </a>") %>
If del (str) is directly written, the parameter is the value of the variable str,
Del ("str") or del ('str') indicates that the parameter is a string of "str"