Skip to main content

Posts

Showing posts with the label HTML

Create a mailto htm with no character limit.

The HTML standard for the mailto link is 256 characters. You can get around this by loading the JavaScript redirect instead. var  body = escape(window.document.title + String.fromCharCode(13) + window.location.href + " actully  a Your long text here..." ); body = body.replace( /\//g ,  "%2F" ); body = body.replace( /\?/g ,  "%3F" ); body = body.replace( /=/g ,  "%3D" ); body = body.replace( /&/g ,  "%26" ); body = body.replace( /@/g ,  "%40" ); var  subject =  "Take a look at this!" ; window.location.href =  "mailto:?body="  + body +  "&subject="  + subject;