Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design embedded bandcamp iframe updates url?

  • embedded bandcamp iframe updates url?

    updated 11 months, 1 week ago 0 Member · 1 Post
  • BusinessMag

    October 26, 2021 at 10:33 am

    Bandcamp gives you html for an iframe to embed music onto your website When a user clicks on a song in the iframe, something happens and I’m not sure what. The parent URL doesn’t change and it doesn’t appear that popState nor pushState have been fired but the user is left with an ‘extra’ state? (the iframe doesn’t appear to change its URL either) Pressing the back button at this point does nothing and the popState event listener doesn’t fire. If the user then clicks the back button again, it reacts like normal, with a popState event. I understand that since the iframe isn’t on my domain I’m pretty much out of luck by the sounds of it. I’ve tried some suggestions to listen to the pushState, popState and replaceState events which work, but don’t fire in this circumstance Here’s my example: Load my example ^ click a song > click the back button and you will see what I’m talking about Note: only clicks on the song list triggers this behavior – by /hq/mug_runcher – –

Viewing 1 of 1 replies
Reply to: BusinessMag
Your information:

Original Post
0 of 0 posts June 2018