Hello,
I am buildig a website, which uses javascript for several features
such as fieldvalidation , popupwindows etc.
Currently I am using <a href="#foo"
onClick="Valida te('form_commen t_fieldname')"> Validate</amainly
becuase I do not want to openly show the variables in the browser.
In the case of a popup I have this:
<a href="#foo" onClick="Valida te('http://www.mysite.com/helpdocs/
donotopen/chapter1/index15.html)"> Chapter 1 support</a>
But the thing is, I don't like the #foo as url either.
So I was wondering what's the most common way to call javascript
functions from html as onclick or straight in the href?
thanks for reading and please share your thoughts :)
I am buildig a website, which uses javascript for several features
such as fieldvalidation , popupwindows etc.
Currently I am using <a href="#foo"
onClick="Valida te('form_commen t_fieldname')"> Validate</amainly
becuase I do not want to openly show the variables in the browser.
In the case of a popup I have this:
<a href="#foo" onClick="Valida te('http://www.mysite.com/helpdocs/
donotopen/chapter1/index15.html)"> Chapter 1 support</a>
But the thing is, I don't like the #foo as url either.
So I was wondering what's the most common way to call javascript
functions from html as onclick or straight in the href?
thanks for reading and please share your thoughts :)
Comment