Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Hot to open a new window when press 'F9' key

Hot to open a new window when press 'F9' key

Scheduled Pinned Locked Moved Web Development
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chetan visodiya
    wrote on last edited by
    #1

    Hi , I want to open a new window when i press a F9 key. please if you know then answer me with code. Thanks, Chetan Visodiya

    S 1 Reply Last reply
    0
    • C Chetan visodiya

      Hi , I want to open a new window when i press a F9 key. please if you know then answer me with code. Thanks, Chetan Visodiya

      S Offline
      S Offline
      Sushant_Mathur
      wrote on last edited by
      #2

      You can call a javascript function onkeypress and this function will check whick key is pressed by the user. and you can check this key is F9 key or not function chkKey(){ var chkkeycode=e.charCode? e.charCode : e.keyCode if (chkkeycode==120){ //120 is a keycode for F9 key. //open new window here } } Sushant Mathur Bangalore, INDIA. <a href="http://n.domaindlx.com/fun2ssh/HOME.htm">http://n.domaindlx.com/fun2ssh/HOME.htm</a> </x-turndown>

      C 1 Reply Last reply
      0
      • S Sushant_Mathur

        You can call a javascript function onkeypress and this function will check whick key is pressed by the user. and you can check this key is F9 key or not function chkKey(){ var chkkeycode=e.charCode? e.charCode : e.keyCode if (chkkeycode==120){ //120 is a keycode for F9 key. //open new window here } } Sushant Mathur Bangalore, INDIA. <a href="http://n.domaindlx.com/fun2ssh/HOME.htm">http://n.domaindlx.com/fun2ssh/HOME.htm</a> </x-turndown>

        C Offline
        C Offline
        Chetan visodiya
        wrote on last edited by
        #3

        Hi shushant, Thanks for giving me the answer. Chetan Visoidya

        S 1 Reply Last reply
        0
        • C Chetan visodiya

          Hi shushant, Thanks for giving me the answer. Chetan Visoidya

          S Offline
          S Offline
          Sushant_Mathur
          wrote on last edited by
          #4

          Hey welcome dude..but name is Sushant not shushant :laugh: Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups