Replicate keypress in code asp.net

Discussion in 'ASP .Net' started by csgraham74, Jun 22, 2005.

  1. csgraham74

    csgraham74 Guest

    Hi guys,

    i have created a asp.net application and use an HTA to view the
    aplication. The only way that i know to exit the HTA screen is to press
    ALT & F4. What i want to do is to write a piece of code that replicates
    this key press.

    E.g.

    on an exit button this code is called and it exits the HTA.

    does anyone know how to replicate this in code ????

    thanks in advance

    C
     
    csgraham74, Jun 22, 2005
    #1
    1. Advertising

  2. csgraham74

    Patrice Guest

    Have you tried something like window.close() ?

    Patrice

    --

    "csgraham74" <> a écrit dans le message de
    news:...
    > Hi guys,
    >
    > i have created a asp.net application and use an HTA to view the
    > aplication. The only way that i know to exit the HTA screen is to press
    > ALT & F4. What i want to do is to write a piece of code that replicates
    > this key press.
    >
    > E.g.
    >
    > on an exit button this code is called and it exits the HTA.
    >
    > does anyone know how to replicate this in code ????
    >
    > thanks in advance
    >
    > C
    >
     
    Patrice, Jun 22, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Hobbs

    Replicate HTMLInputFile functionality

    Paul Hobbs, Aug 3, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    335
    Paul Hobbs
    Aug 3, 2003
  2. Paul Hobbs
    Replies:
    0
    Views:
    377
    Paul Hobbs
    Aug 4, 2003
  3. Marina
    Replies:
    2
    Views:
    575
    Marina
    Jan 7, 2004
  4. Mike Moore [MSFT]
    Replies:
    0
    Views:
    736
    Mike Moore [MSFT]
    Jan 9, 2004
  5. Jason Shohet
    Replies:
    0
    Views:
    351
    Jason Shohet
    Feb 17, 2004
Loading...

Share This Page