javascript - Click on link without the basic message -


how when click on link did not work event. example:

html

<div><p onclick='location.href=/link_site'>message , link http://example.com/abcde</p></div> 

i`am clicked http://example.com/abcde , working location.href, how make when press on link event did not work location.href?

unless working inside php (or other language?), not need backslashes escape double-quotes.

escaping tells processor/server read next character literal entry instead of instruction code. (this not technical explanation).

in html5, don't need single or double quotes, form contain information.

<div><p onclick='location.href=link_site'>message , link http://example.com/abcde</p></div>


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -