Submit Your Article Forum Rules
Results 1 to 3 of 3

Thread: Pop-Up window issue

  1. #1

    Pop-Up window issue

    Hi there,

    I created a JavaScript Link that opens a Pop-Up window with the relevant content. To close the window I used the following code:

    <INPUT name="button" type=button onClick="javascript:window.close();" value="Close Window">

    On the W3C validation service I found that each FORM tag needs to have the ACTION attribute specified. What do I specify to simply close the window?

    It would be great if someone could help me out on this.


  2. #2
    WebProWorld MVP davebarnes's Avatar
    Join Date
    Jul 2003
    Denver, CO USA
    I don't think you need the <form>.

    which says:
    For a regular window, use this:

    Dave Barnes
    Hidden Content

  3. #3
    Thank you so much! It works perfectly fine and now complies with the W3C ...


Similar Threads

  1. How to open it in a new window
    By alexcl in forum Google AdWords/Google AdSense
    Replies: 12
    Last Post: 11-01-2007, 01:39 AM
  2. New Window or New Tab?
    By jtracking in forum Accessibility and Usability Forum
    Replies: 8
    Last Post: 01-26-2007, 06:49 AM
  3. new full window
    By tfinch in forum Web Programming Discussion Forum
    Replies: 0
    Last Post: 03-29-2006, 11:03 PM
  4. Adsense New Window
    By coder in forum Google AdWords/Google AdSense
    Replies: 1
    Last Post: 09-27-2004, 10:50 AM
  5. Pop Up Window
    By ajpaulus in forum Graphics & Design Discussion Forum
    Replies: 11
    Last Post: 01-22-2004, 05:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts