Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Posts
    306
    Thanks
    24
    Thanked 0 Times in 0 Posts

    How to open a document in new window in HTML 4.1 strict

    HI;
    I'd like to ask you How to open a document in new window in HTML 4.1 strict?

    I tried to use the target="_black", the validate say that it is not allowed in HTML4.1 strict. Could anyone tell me which attribute i can use? Thanks
    <a href="Country.html" target="_blank"> the country </a> <br>

  • #2
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    principle outline e.g.
    Code:
    <a href="Country.html" onclick="window.open(this.href); return false;">the country</a>

  • #3
    Regular Coder
    Join Date
    Dec 2006
    Posts
    306
    Thanks
    24
    Thanked 0 Times in 0 Posts
    It does not work when i open my page, there are nothing to display.

  • #4
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Post a url/link so we can see the rest of your code.

  • #5
    Regular Coder
    Join Date
    Dec 2006
    Posts
    306
    Thanks
    24
    Thanked 0 Times in 0 Posts
    Hi Bill Posters;
    It does work, i just make a mistake.

    Thanks a lot

  • #6
    Regular Coder BWiz's Avatar
    Join Date
    Mar 2006
    Location
    Sol System
    Posts
    471
    Thanks
    7
    Thanked 21 Times in 21 Posts
    Within the window.open(), you can set certain arguments to change attributes of the window. Ref: http://www.pageresource.com/jscript/jwinopen.htm
    BWiz :: Happy Coding!
    2006
    2007 2008 2009
    2010 2011
    Irrational numbers make no sense.


  •  

    Posting Permissions

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