Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anita Thagaard Kristensen 33 posts 53 karma points
    Aug 28, 2010 @ 14:59
    Anita Thagaard Kristensen
    0

    History.go(-2)

    Hi

    I have made a page where people with no flash player are linked to another page. but when they use the browsers back button they stay on the page where they wanted to go back from.

    I need to make a script that can send them 2 pages back in the history. For you information I have made the pages in content.

    The code I tried with is this:

    <script type="text/javascript">
    onClick="history.go(-2);
    </script>

    I had put that into the properties of the content under scripts. When I run the page I get this //]]> in the top of the page.

    Can anyone help me please.

    Anita

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Aug 28, 2010 @ 21:02
    Jan Skovgaard
    0

    Hi Anita

    Maybe you should have a look at the script "swfadress", makes it possible to use the back button when running flash or ajax based sites - Have a look at the flash samples found here http://www.asual.com/swfaddress/samples/

    Where have you exactly placed your code? Have you done it in an XSLT rendering or in a template?

    /Jan

    PS: In the future you should probably make this post in another category, since it has nothing to do with the Umbraco core :-)

  • Anita Thagaard Kristensen 33 posts 53 karma points
    Aug 30, 2010 @ 08:58
    Anita Thagaard Kristensen
    0

    Hi Jan

    I have placed the code ind the content without flash.

    The site shall run as following:

    When they click on the menu tab "brakes" and they have flash installed, then they come to the page with flash on. If they don't have flash installed then they will be redericted to a page without flash. And it is on this page that I need the history.go(-2) so that they will return to the page where they clicked on the "Brakes" menu tab.

    Both pages is made in content.

    Anita

Please Sign in or register to post replies

Write your reply to:

Draft