Is it possible to create a button which goes back to the previous page?

I would like to create a button which sits within a interactive pdf page that on click will return me to my previously visited page.
As the page will be able to be accessed via numerous other pages the traditional built in Execute menu action is not suitable.
The page which will be displayed (on click of a button) is a series of mattress sizes which i want to be accessable by each bed product in our collection. Once the user has looked at the mattress size guide i want them to be able to return to the bed product that they were looking at originally, without having to then scroll and search.
Is this possible with some javascript trickery?
i found this script:
history.go(-1);
But allas acrobat was not fond of it.
PLEASE HELP!
Thanks in advance.

PDFs are not HTML documents. HTML has no concept of a physical page and PDF only knows a page canvas.
You can access the page number property of the doc object and you can set the page number of the page number of the doc object. The page number in Acrobat JavaScript is zero base, the first page is 0.
To get the page number one uses the following code:
this.pageNum;
To set the page number one uses:
this.pageNum = 0; // goto first page
To goto the next page:
this.pageNum = this.pageNum++ // increment the page number and goto that page
To goto the last page:
this.pageNum = this.numPages--; // decrement the total number of pages
To goto the previous page:
this.pageNum = this.pageNum--; // decrement the page number

Similar Messages

  • It's so annoying!! I have created a new Apple ID but after I click verify it just goes back to the previous page!!! It''s really frustrating I have tried for more than 4H, and the problem is not about the apple ID. I can download apps with the apple ID, w

    It's so annoying!! I have created a new Apple ID but after I click verify it just goes back to the previous page!!! It''s really frustrating I have tried for more than 4H, and the problem is not about the apple ID. I can download apps with the apple ID, which means IMessage is the problem! I restarted my iPad, I logged in and out of the apple ID in the store, AND YET IT STILL WON'T WORK, PLEASE HELP!

    Hi Vmanfromusa!
    It sounds like you are having an issue with activating your iMessage app on your iPad. An article outlining some troubleshooting steps for this issue can be found here:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • How to prevent going back to the previous page by hitting the Back button ?

    In the html code I generate from my servlet, I have the following :
    <Html>
    <Head>
    <Title>Cox Part Time Benefit App Login Page</Title>
    <Meta http-equiv="Pragma" content="no-cache">
    <!-- Pragma content set to no-cache tells the browser not to cache the page. This may or may not work in IE -->
    <Meta http-equiv="expires" content="0">
    <!-- Setting the page to expire at 0 means the page is immediately expired. Any vales less then one will
    set the page to expire some time in past and not be cached. This may not work with Navigator -->
    <Meta http-equiv="Cache-Control" content="no-cache">
    <!-- This directive indicates cached information should not be used and instead requests should be forwarded
    to the origin server. This directive has the same semantics as the PRAGMA:NO-CACHE -->
    </Head>
    I hope it can prevent user from going back to the previous page by hitting the Back button on the browser, but it doesn't, what's the right way to do it ?
    Frank

    I think I'm half way now, but something is missing. I have the following filter :
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    public class ResponseHeaderFilter implements Filter
      FilterConfig fc;
      public void doFilter(ServletRequest req,ServletResponse res,FilterChain chain) throws IOException,ServletException
        HttpServletResponse response=(HttpServletResponse)res;
        for (Enumeration e=fc.getInitParameterNames();e.hasMoreElements();)        // Set the provided HTTP response parameters
          String headerName=(String)e.nextElement();
          response.addHeader(headerName,fc.getInitParameter(headerName));
        chain.doFilter(req,response);                                              // Pass the request/response on
      public void init(FilterConfig filterConfig)
        this.fc=filterConfig;
      public void destroy()
        this.fc=null;
    }And in my web.xml, I have something like this :
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <servlet>
      </servlet>
      <servlet-mapping>
      </servlet-mapping>
      <session-config>
      </session-config>
      <welcome-file-list>
      </welcome-file-list>
    <resource-ref>
    </resource-ref>
    <filter>
      <filter-name>ResponseHeaderFilter</filter-name>
      <filter-class>ResponseHeaderFilter</filter-class>
      <init-param>
        <param-name>Cache-Control</param-name>
        <param-value>private,no-cache,no-store</param-value>
       </init-param>
      <init-param>
        <param-name>Pragma</param-name>
        <param-value>no-cache</param-value>
       </init-param>
      <init-param>
        <param-name>expires</param-name>
        <param-value>0</param-value>
       </init-param>
    </filter>
    </web-app>I rebuilt the project and ran it, and yet, I can still hit the "Back" button and get to previous page, what am I missing ? Is what I've done in the web.xml file enough to set it up, or do I need to call ResponseHeaderFilter somewhere in my servlet in order to use it ?
    Frank

  • Creating a button that leads back into the main Pages/States from a custom component

    Hello Y'all! isnt F.C. awesome!
    BUT... just cant get a button that leads from a custom component ive made back into the main bulk of pages and states ive created to work.
    it runs a bit like this:
    Main title page...
                            Photography...
                                                 Nature (on which theres a Custom Component which when clicked leads to...)
                                                            20 different custom component states each with different pics, linked via buttons
    from each of which id love a button that led back to Photography, exiting the custom component
    ive tried the basics:      Add interaction.. when clicked.. play transition to.. state: Photography
    but to no avail
    any ideas? im at a loss!
    thanks in advance,
    Tom

    Cross component communications are an issue in Flash Catalyst 1.0. Thankfully, in Flash Catalyst 5.5 the team addressed some of those issues.
    The only idea I have for remove the 'return' button from within the component, then it should be able to get you back to the home state.
    Or, you might be able to wait a few weeks for the new version of Flash Catalyst to ship (or you can play with the older preview release on labs.adobe.com)
    Chris

  • How to create a button which scrolls down with the page automatically?

    Hello,
    I wanted to create a button which takes u back to the top of the page when pressed on, but I was wondering how to make it scroll down with the page on the right side automatically when some1 scrolls down the page.
    An example I saw was on tumblr.com
    P.S I'm a newbie, so please explain it clearly ;d.
    Thanks.

    Create a button, position it as fixed at the top right say,
    a button{
              position:fixed;
              top:50px;
              right:50px; 
    <a href="#home"><button> Button</button></a>
    The <a> is the link to take you to the top of the page
    Just be sure to set the id home on an element at the top of the page

  • Back button does not go to the previous page

    Hi all, first post.
    As an imac user I also have a laptop running Win7 O/S and of course Safari 5.1 (7534.50).
    I go to the tabbed browsing bar, click on a bookmark and open all in tabs.
    The problem occurs when I use the back button to go to the previous page. Instead I get a previous set of tabs? Or sinle blank tab?
    Can anybody help me please!
    Mike

    Right - found a workaround for the PC (mac is not affected).
    Instead of hitting the back button, hold it.
    This will bring a list of all possible back pages, select the one you want.
    Once you have done this, the back button behaves a bit better.
    EDIT: Timesink has noted that the backspace button works.
    Always beter to use keys and shortcuts

  • How do I go back to the previous page if the app dosen't have a back button?

    In iOS we can go to the previous activity of an app by swiping from left to right of the screen. In FireFox OS is there any way to go to the previous page of an app?

    Hello,
    Depending on the app it should have its own back button. Could you let me know which app you are having trouble with?
    I've attached a screenshot of the Settings app in Firefox OS. The screen shows the Sound settings page. If you wanted to go back to the main screen of the Settings app you would click on the back button in the top left hand corner. It looks like this: <
    Some apps (e.g. from the adaptive app search screen) may not have a back button built into the app itself. In that case you can access a back button from the navigation bar at the bottom.
    I've attached another screenshot from the IMDB app. Here I have accessed the 'Breaking Bad' page. If I want to return to the previous screen I can swipe up from off the screen over the orange button in the bottom right hand corner. It looks like this: ᶺ
    Then the navigation bar will appear (see my 3rd screenshot). The back button is on the far left side of the navigation bar. It looks like this: ←
    I hope this helps. Let me know if not.

  • The arrow at the top Left  of the search line has been replaced by a   sign which can be used to add bookmarks. How can I restore the arrow at the top left to go back to the previous page?

    When Safari is opened on my MacBook Pro, the arrow at the top  left ( of the search bar where I type what web site I am searching) has been replaced by the sign + which I can click on to add a bookmark... How can I restore the arrow that I can use to access the previous page?
    What should I should do?
    Tx

    raymond ==
    Go up to the main Safari menu bar above, and select "View."
    Then when that bar comes down, select "Customize Toolbar."
    Then select the arrow icon, and just drag it into your toolbar.

  • Safari 'back button' has to be pressed twice for it to go back to the previous page HELP!

    I've had this bug for a couple of days now and it seems to not get fixed. I've tried clearing the browser for history, cookies etc. Restart, shut down but nothing works.
    Any idea on how to fix it?
    Thanks

    I have this bug too since few days ago, on Yosemite GM 3, while surfing YouTube. Btw Chrome is working fine.
    It happens because the YouTube is redirecting me to page http://www.youtube.com/watch?v=38IqQpwPe7s&spfreload=10%20Message%3A%20JSON%20Parse%20error%3A%20Unexpected%20EOF%20(url%3A%20http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D38IqQpwPe7s) instead of http://www.youtube.com/watch?v=38IqQpwPe7s

  • Is it possible to create custom buttons in CRM Ondemand?

    Hi,
    Is it possible to create custom buttons in CRM Ondemand in any detail page like the inbuilt buttons like 'New', 'Delete' etc? If possible then how?
    Thanks
    Arpita

    You can add a button using custom javascript. but this could potentially have performance issues. please test the performance and functionality if you implement a lot javascript
    see this link : http://helponmyproject.com/TTOCOD/
    Regards,
    Royston

  • Is it possible to have an asset link to the previous page?

    Hello!
    Okay so I my website have over 200 pages and I wanted to make a single button that functions as a web browsers back button.
    Is this possible or am I going to have to put an asset on each individual page telling it to go back to the specific page that it was just on?

    Hi,
    There is html code for back to the previous page.
    Google it to be sure to get the one that works for you.

  • There is no longer a "close tab" under the file menu, so how do I go back to a previous page when the back button will not work?

    Often the back button will not work. I can find no "close tab" under the menus, which I think used to be there, and which is used with Internet Explorer to go to the previous page. How can I go back to the previous page with Firefox when the back button will not work?

    No you can't. Apple don't support downgrading of iOS.

  • Back (or show previous page) button and Ebay....

    Hello all. I am having a problem with ebay and the back button on Safari. It started with version 3, and it continues to version 4. When I am looking at an item, if I click the back button, the page just reloads. I have to double click the back button to go to the previous page. I have just noticed this on the ebay site and no others. Any ideas? Thanks for the input.

    having the same problem at www.dealnews.com
    not a problem with previous 3.32 version, but now i can't get back to the previous page without pressing the back button twice quickly.
    if you press it once, it just reloads the same page.
    i've reset safari, but nothing fixes it.
    anyone else have an idea?
    thanks!

  • Why can't I get to the previous page by hitting the back button just once?

    Hi there.My problem is that when I try to go back to the previous page(s) and hit the back button nothing happens.I have to hit it twice or triple to force action.This is happening after the latest update of mozilla.I know that in previous mozilla versions you had to double-click to go back to previous pages, but in the latest versions you could go back by just one click(double-clicking remained as a choice for the romantic...).Is it a matter of set up?Please answer cause it's really annoying...

    See http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
    Also, Can you try to start Firefox in Safe Mode to see if Firefox works properly with no error? You can start Firefox in Safe Mode below:
    *'''Windows/Mac''': Go to Help > Restart with add-ons disabled
    *'''Linux''': Run ''firefox -safe-mode'' in the Terminal/Konsole
    If Firefox opens up fine with no problems, it's probably one of your extensions that's causing the issue. You can re-enable your add-ons one by one until you find the one that causes the issue upon being re-enabled.

  • I tried to change my homepage but I don't have the "apply" button. When I open the browser again, it goes back to the old homepage.

    when I try to change my homepage, there is no "apply" button to hit, so the browser reverts to the old homepage when I reopen my browser. I made sure my browser is updated, but that did not help. I was able to change my homepage a long time ago, successfully, and it stayed there. I did not notice when this changed or what may have caused the change to come about. I am running Windows 8 with all the latest updates.

    I tried under Options>General>Startup several times. I typed in the new homepage and I also tried Use Current Pages, still same results. the new homepage stays until I restart the browser, then it goes back to the previous one

Maybe you are looking for

  • HT5622 How do I delete credit card from my account? I can't seem to remove my payment info?? Help!

    Is there a way to remove/Delete Credit Card/Payment information from an iTunes Account ??

  • Permission error

    I'm at a complete loss here. I cannot get the TS finish properly. I get this error after it finishing applying the WIM: Installation of image 1 in package PS100117 failed to complete.. Permissions on the requested may be configured incorrectly.Access

  • 2 Column Page Layout

    I'm wondering if there is any way to have two-columns set up in one section of a document and then one column in another. I'm working on taking notes for my biology class and am trying to separate the vocabulary words from the notes themselves, and w

  • Appraisal form doesn't open in new window

    Hi Guru's, We are using the BSP application HAP_Document. For the employee we use the "page with flow logic" (SE80) documents_receives_open2.html. This gives an overview of open appraisals. Our problem is, that when an employee clicks on the link to

  • Import problems from scanned negativeas

    I recently scanned some negatives at 2400 dpi using and Epson scanner directly into Photoshop. Of course Photoshop reverses the image and I did further level adjustments and retouching. When I import these images into iPhoto, they show up as a black