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
Post a Comment