jquery - DIV onClick in CSS -


For the title of my website, I have the following code with a DIV withclick so that users can click anywhere on the title And refresh the page:

  & lt; Div class = "title" onClick = "document.location.href = 'xxxx';" & Gt; Although the W3C validator tells me:  

there is no attribute "onClick"

I have to read about doing this in JQuery, but I have not got enough luck in that work, can anyone help me here?

Thanks

onclick should be lowercase.

Comments

Popular posts from this blog

android - How can I execute default sms app? -

jquery .css('text-decoration') doesn't work from parents -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -