Forum Discussion
NishaAtkins
26 days agoCommunity Member
Top of Page code
Hello, excited to see this new feature.
I'd really like a link or button that sends users back to the top of the page. I used AI to write the code, as suggested in the instructions in 'An Introduction to Rise Code Block'.
When I paste the code into the block, the 'Top of Page' link/button appears but when I click on it, nothing happens.
I'll attach a text doc with the code - any help would be much appreciated. thank you.
2 Replies
- EricaHunterCommunity Member
My understanding is that the code blocks currently can't communicate with the course - they are locked into themselves, so the JS can't boss the page around 🥲. I don't see your code attached, but I wrote a quick JS to do this and it didn't work.
- NishaAtkinsCommunity Member
Ah ok, that makes sense. Thank you very much for the reply - really helpful.
Related Content
- 10 months ago
- 11 days ago
- 2 months ago