Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: Pop-Up window issue

  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    34

    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:

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

    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.

    lala

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

    See http://www.codelifter.com/main/tips/tip_017.shtml
    which says:
    For a regular window, use this:

    Close
    Dave Barnes
    +1.303.744.9024
    Hidden Content

  3. #3
    Member
    Join Date
    Feb 2007
    Posts
    34
    Thank you so much! It works perfectly fine and now complies with the W3C ...

    lala

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