Javascript if() { a.click }

Discussion in 'JavaScript' started by netdown, May 30, 2012.

  1. #1
    Hi!
    I know, that
    onClick="document.getElementById('id').click();
    but how can I get this to work:
    if(location.hash = 'id') {
    window.onload = document.getElementById('id').click();
    }
     
    netdown, May 30, 2012 IP