I have a website that has javascript in it to open a modal. I need to add this code to my link in hype. How can I add the entire <a>
tag to the link not just a URL?
I think you need to explain a bit more.
Wha link, what's the modal showing.
What's the js.
Can you post an example/ show the site ?
I agree it would be good to explain more. The simple explanation though for adding arbitrary HTML (like an <a>
tag) to Hype would be:
- Insert a rectangle element
- Remove styling that you might not want
- Choose the 'Edit > Edit Element's Inner HTML' menu item (alternatively double-click the element to edit, then hit the pencil icon)
- Add your HTML to the pop over window that appears
A couple things to note:
- You probably do not want to choose the HTML Widget element; this is an iframe and separated from the page so it won't have access to javascript on the parent page
- Likewise do not embed your hype export in an iframe, as this would lead to the same problem