Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Use javascript with squarespace without code block



Posted (edited)

I like to use WSIWYG from Squarespace to format my text and for each text, i like to add a hyperlink like this:

See video

with this as URL -> href="javascript:videoPlay(5)"

I prefer not to use a code block so that I can use SS's WSIWYG features.

I have declared videoPlay in the code injection section. I have the business plan.

Is this possible?

Edited by dbliss20
improve clarity
Link to comment

3 answers to this question

Recommended Posts

  • 0
On 5/19/2021 at 6:38 PM, creedon said:

Add your href value into a link in the text block.


It's the chain link icon on the toolbar.

Let us know how it goes.

It works great to create the link. However when I go back to edit it, the JavaScript href is gone. Is there an easier way to edit it? It seems I have to remove the link and recreate it to perform an edit.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...