Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2010
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Need help redirecting page with js

    Hi, I need help adding a redirect page function to this:

    Code:
    addButton('Close', function() { light.close(); },true).open();
    Any idea how to do this? This is a function that closes a window, and I want to close it, then redirect to another page. Thanks in advance.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,118
    Thanks
    80
    Thanked 4,555 Times in 4,519 Posts
    Since you don't show what the addButton function does, I don't see how we can guess what the right answer is.

    If this is on a web page someplace, can you give us the URL? If it is not, you'll have to show more code.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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