HTML - How to open new window? strict & Accessibility

Discussion in 'Software' started by sheepondrugs, Dec 28, 2007.

  1. sheepondrugs

    sheepondrugs Private First Class

    Hi,

    im trying to open a new window.:major

    im using HTML Strict (must be HTML strict) [W3C]
    and im using Watchfire to check Accessibility.

    im currently using:
    Code:
    <A HREF="javascript:void(0)" onclick="window.open('http://www.google.com')">google</A>
    
    although this code is valid for W3C its not valid with Watchfire Accessibility.
    any ideas? :(

    Thanks in advance,

    SoD
     
  2. belovah

    belovah Private E-2

    Hey,

    try with this: <a onclick="window.open(this.href, '_blank'); return false;" href="SITEURL">link</a>
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds