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. window.close()

window.close()

Scheduled Pinned Locked Moved Web Development
htmlcomsysadminhelp
2 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.
  • T Offline
    T Offline
    The_Server
    wrote on last edited by
    #1

    Hi all =-=-=-= in my HTML I need to open a window. everything OK.... but then... I was asked to close it

    function OpenIt()
    {
    open("http://URL.com","MyNewWindow");
    }

    function CloseIt()
    {
    //mmmmmmmmm..... I dont know
    }

    Please Help:confused: =-=-=-=-=-=-=- The Server :rose:

    N 1 Reply Last reply
    0
    • T The_Server

      Hi all =-=-=-= in my HTML I need to open a window. everything OK.... but then... I was asked to close it

      function OpenIt()
      {
      open("http://URL.com","MyNewWindow");
      }

      function CloseIt()
      {
      //mmmmmmmmm..... I dont know
      }

      Please Help:confused: =-=-=-=-=-=-=- The Server :rose:

      N Offline
      N Offline
      Nelo Angelo
      wrote on last edited by
      #2

      Hi there this is a bit ironic but anyway thanx for the help and this is what my book says regarding this. var popwindow; function popup(){ popwindow = window.open("popup.html","","top=40,left=40,width=200,height=100,directories,location,menubar,resizeable,scrollbars,toolbar"); } function close_popup(){ if (popwindow !=null )popwindow.close(); } window.onload = popup; window.onunload = close_popup; Hope this helps not sure though!! Stay well and ejoy life to the max

      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