#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2005
    Posts
    390
    Rep Power
    10

    Executing a http script from onclick()


    Hi,

    Upon a user clicking on a link, I need to actually execute two links. Both of these deal with logging out of an application. When the user clicks "log out" it also needs to log out of a secondary application by executing the other application's http://application.com/log.asp script too.

    Is there a way of executing both logout links perhaps keeping one link at the <a href=""> and placing the other in an onClick() function?

    Thanks
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,124
    Rep Power
    4303
    A browser can't go to two pages in the same tab at the same time. I suggest you do an HTTP redirect from the first log out page to the second. (I would warn against using JavaScript for security related operations like this)
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo