For the #PocketPortal workshop, I wanted to include a clickable SMS link in one of the page examples. Clicking it would open the texting app with text and phone number set, inspired by moonshine.mu's "SMS for location".

You may have encountered similar links which use mailto: (for email) and tel: (for telephone) in the site's #html markup.

Anyway, doing so is trickier for SMS, but StackOverflow came in clutch: https://stackoverflow.com/questions/6480462/how-to-pre-populate-the-sms-body-text-via-an-html-link/58131833#58131833

#candidefindings

How to pre-populate the sms body text via an html link

How to use an html link to open the sms app with a pre-filled body? Everything I have read seems to indicate that sms:18005555555?body=bodyTextHere Should work, but on the iPhone, this doesn't wo...

Stack Overflow

Here's a video demonstrating how to use #sms links that open your text app and pre-populate the message and phone number.

Try it for yourself: https://editor.p5js.org/candideu/full/YJuM89lQ-

#webdev #html #candidefindings

p5.js Web Editor

A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.