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 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    OK, where is my error in this line?

    document.write('<a href="http://blackwhite.uk.com' + code + ' target="_blank">click here</a>');

    It doesn't open a new window but stays in the same one - I know the error is a simple one, but I am blind to it today!

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    You forgot to end quote the link
    Code:
    document.write('<a href="http://blackwhite.uk.com' + code + '" target="_blank">click here</a>');
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • Users who have thanked Kor for this post:

    scaifea (08-29-2007)

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thanks

    That was annoying me for ages and I just couldn't see it


  •  

    Posting Permissions

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