How to deal with the delimiter that contains the & # javasavascript statement?

Source: Internet
Author: User

 Struserlist = struserlist & "<a href = '# 'onclick = \" & chr (34 )&_

"Sendmsg ('" & usernick & "'); return false; \" & chr (34 )&_

"Class = 'l _ line'> <span class = lineinfo>" & usernick & "</span> </a>"

'StruserlistThe string is assigned to a form on another page to hide the text unit..

If (top.LineInfo.doc ument. forms. length = 1)

{

 Top.LineInfo.doc ument. forms [0]. userlist. value = "<% = GetAppUserList () %> ";

 If (top. MainFrame. mylayer! = Null)

Top. MainFrame. ShowLineInfo ();

}

Show in homepage Frame:

Function ShowLineInfo ()

{

Var userlist;

 If (top.LineInfo.doc ument. forms. length = 1)

 Userlist = top.LineInfo.doc ument. forms [0]. userlist. value

Else

Userlist = "<span class = 'lineinfo'>Welcome to the wonderful spring breeze! </Span> ";

Userlist = userlist + "<a href = '<% = path %>/listuser. asp'>" +

"<Span class = 'lineinfo'>Display list</Span> </a> <a href = '# 'onclick =' top. RefFrame. location = "+

"" <% = Path %>/refresh. asp? Stat = manu "'> <span class = 'lineinfo'>Refresh</Span> </a> ";

If (mylayer! = Null)

{

Mylayer. innerhtml = "";

Mylayer. filters [0]. Apply ();

Mylayer. innerhtml = userlist

Mylayer. filters [0]. Play ();

}

}

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.