Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Oct 2002
    Thanked 0 Times in 0 Posts

    How Can I Open a Link in a New Window in XHTML- Strict?

    How can I get around the prohibited use of
    target="_blank" in XHTML-Strict, and open a
    link in a new window?

    Can I add an entry such as:
    a.blank{ ___ }
    to my stylesheet and then use
    <a class="blank" href=... etc... >Link Text</a>?
    If so, what goes into the stylesheet entry?


    Update 10/16/2002:
    I was offered the following method:

    <a href="newpage.html" onclick="window.open(this.html); return false;">new page</a>

    It works, and it passes the W3C "XHTML-Strict" Test .
    Last edited by wewain; 10-17-2002 at 04:36 AM.


Posting Permissions

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