Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

S

sebht

@sebht
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • JS History Back link
    S sebht

    Dear @Richard-Keith

    thanks for getting back! Here's the link to the project page I'm working on. The png is the red X in the top right corner. This project shows in the categories 'home' and 'edit', which is why I need the back function.

    So I've gotten the <Script> to work by assigning the png a class – figured it out by myself :)

    However, I have to click it twice to go back to the previous page. I guess there's an event in between that the button goes back to. How do I edit the <Script> to go to the overview?

    Best,
    Seb

    General Discussion

  • JS History Back link
    S sebht

    Hey guys, I've been trying to follow but it seems like I'm missing out on something here. Would you care to explain for dummies again?

    I have a png which I want to assign the class to in order to make it a button with history.back function.

    This is the part I insert in Custom <head> content

    <script>
    jQuery(document).on("click", "go-back", function(event) {
    history.back();
    });
    </script>
    

    What to I insert elsewhere to make it an applicable class, which turns my png into a clickable link?

    Many thanks!

    General Discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search