SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast subBlue's Avatar
    Join Date
    Jun 2001
    Location
    Edinburgh, UK
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Calling a JS func. when back button pressed?

    Is it possible to call a javascript function when the forward or back browser buttons are pressed?

    I have a site that loads content into iframes using javscript functions, however this means that the back button doesn't track the history of the user through the site.

    Thanks,

    Tom
    Become Interactive because its all gone a bit subBlue

  2. #2
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A previous post of mine* on this subject that may prove useful to you.

    Hope it helps

    (* that's two of my posts that I've recycled today. Do I get a badge or something for being ecological or just a slap for being lazy? )
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  3. #3
    SitePoint Enthusiast subBlue's Avatar
    Join Date
    Jun 2001
    Location
    Edinburgh, UK
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, thats taught me a couple of things, but it doesn't look like it will be possible. To see what i mean take a look at the site - www.becomeinteractive.co.uk

    Each section animates before the content is loaded so the JS function has to be called, not as straight forward following a location.href history.
    Become Interactive because its all gone a bit subBlue


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •