Web Analytics Made Easy -
StatCounter closing window on submit? - CodingForum

Announcement

Collapse
No announcement yet.

closing window on submit?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • closing window on submit?

    Hello,

    I have a small form that i want to close once the data has been submitted.

    I know javascript can close a window. but how should i invoke that with my script?

    something like:

    header("Location: javascript:window.close();"); ??


    i'm not sure it would work like that, any ideas?

    thanks in advance for your time!
    -Ken

  • #2
    redirect to a page that has this in the body tag

    Code:
    onLoad="window.close();"
    Design Portfolio

    Comment


    • #3
      kool!

      thanks
      -Ken

      Comment

      Working...
      X