What is the rule behind to divide this html in var tip?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-04-24T15:26:59Z Indexed on 2010/04/24 15:33 UTC
Read the original article Hit count: 217

Filed under:
|

What is the rule behind to divide this html in var tip?

    var tip = "<p class='adobe-reader-download'>Most computers 
    will open PDF documents automatically, but you may need to download 
    <a title='Link to Adobe website-opens in a new window'";
    tip += " href='http://www.adobe.com/products/acrobat/readstep2.html'
 target='_blank'>Adobe Reader</a>.
    </p>";

why this cannot be

    var tip = "<p class='adobe-reader-download'>Most computers will 
    open PDF documents automatically, but you may need to download 
    <a title='Link to Adobe website-opens in a new window' 
href='http://www.adobe.com/products/acrobat/readstep2.html' target='_blank'>
    Adobe Reader</a>.</p>";

and how to divide in HTML is longer than this?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript