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

    Join Date
    Sep 2005
    Rep Power

    Executing a http script from onclick()


    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?

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

    Join Date
    Jul 2004
    USA (verifiably)
    Rep Power
    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.

    Learn CSS. | PHP includes | HTML Validator | CSS validator

    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