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

qt - switch/case statement in C++ with a QString type -

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

Python's equivalent for Ruby's define_method? -