+ Reply to Thread
Results 1 to 6 of 6

Thread: close window or Back Button
      
   

  1. #1
    dfuller is offline Private First Class
    Join Date
    Oct 2007
    Posts
    5

    Smile close window or Back Button

    I am setting up a link to open a new page to provide a little more detail and add a link to email.

    I would like to add a link on the "new page" that will either close the window and return to the previous page or simply close the page. I have read several linking pages threads but can't seem to find one that shows how to do a "back" or "Close Window.

    Please advise.


    18510

  2. #2
    bill2006's Avatar
    bill2006 is offline Lieutenant General
    Join Date
    May 2006
    Posts
    3,422

    Default Re: close window or Back Button

    This post will help.

  3. #3
    Bob Hall is offline Private
    Join Date
    Oct 2007
    Posts
    1

    Default Re: close window or Back Button

    I am able to make this work with IE, but not with Firefox - any thoughts?

    Thanks for sharing your knowledge.

  4. #4
    Join Date
    Feb 2006
    Location
    Kings Lynn, Norfolk (UK)
    Posts
    8,719

    Default Re: close window or Back Button

    Quote Originally Posted by Bob Hall View Post
    I am able to make this work with IE, but not with Firefox - any thoughts?

    Thanks for sharing your knowledge.
    Hi, BV has this facility built in.
    Select Advance Button (ABC) & place on page, then right click to access properties,
    Button type = On Click
    On Click action = Choose as you wish.

    Good luck.

  5. #5
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Default Re: close window or Back Button

    In BV,
    1. click the Button button (on the Forms feed toolbar) usually top of window. The Normal button, not the Advance button.
    2. Double-click the button.
    3. Give it a name and Value (e.g. Back or Close).
    4. Click the Normal radial button.
    5. Open the Events tab.
    6. Click the Add button.
    7. Select the Event as OnClick.
    8. From the Action drop-down, select Java Function.
    9. From the Javascript drop-down, select c
    10. Click OK.

    When visitors click this button, they will go back to the LAST page visited.

    You can use the Advance button as well, but you need to copy and paste the code history.back(); into the OnClick Value field.

  6. #6
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Default Re: close window or Back Button

    9. From the Javascript drop-down, select c
    10. Click OK.
    Don't know what happenned here... but step 9 must read:
    From the Javascript drop-down, select history.back(); or window.close();
    depending on what you want to do.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49