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
  1. Home
  2. Web Development
  3. ASP.NET
  4. about java script

about java script

Scheduled Pinned Locked Moved ASP.NET
javatoolsquestion
3 Posts 3 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.
  • A Offline
    A Offline
    Allah Kaa Bandaa
    wrote on last edited by
    #1

    I am calling a java script function on button click. This function closes the window. On runtime, when i press the button, a dialog appears asking me that program is trying to close window, do you want to close the window?... I want to ask that Can we restrict the dialog from appearing, that is.... when i click the button, then the window automatically will automatically close without any prompt?

    C B 2 Replies Last reply
    0
    • A Allah Kaa Bandaa

      I am calling a java script function on button click. This function closes the window. On runtime, when i press the button, a dialog appears asking me that program is trying to close window, do you want to close the window?... I want to ask that Can we restrict the dialog from appearing, that is.... when i click the button, then the window automatically will automatically close without any prompt?

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Allah Kaa Bandaa wrote: Can we restrict the dialog from appearing I think that is a security feature.


      Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums

      1 Reply Last reply
      0
      • A Allah Kaa Bandaa

        I am calling a java script function on button click. This function closes the window. On runtime, when i press the button, a dialog appears asking me that program is trying to close window, do you want to close the window?... I want to ask that Can we restrict the dialog from appearing, that is.... when i click the button, then the window automatically will automatically close without any prompt?

        B Offline
        B Offline
        Brian M C
        wrote on last edited by
        #3

        The prompt appears because you are attempting to close a parent window that may or may not have children windows open. If you opened the window with "window.open()" and then used "window.close()" on the new window, you'll notice that there is no prompt. This is a browser setting that can't be changed. -BC

        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