"eelco.v987" <eelco.v987@gmail.comwrites:
Quote:
Currently I am using <a href="#foo"
onClick="Validate('form_comment_fieldname')">Valid ate</amainly
becuase I do not want to openly show the variables in the browser.
|
Come again?
(That’s a rethorical question; but some people around here have
repeatedly announced to happily engage in a wild-goose chase for
undisclosed problems, so stay tuned. :)
Quote:
In the case of a popup I have this:
<a href="#foo" onClick="Validate('http://www.mysite.com/helpdocs/
donotopen/chapter1/index15.html)">Chapter 1 support</a>
|
^
It doesn’t help much that you are providing defunct code snippets.
Quote:
|
But the thing is, I don't like the #foo as url either.
|
<a
href="http://www.mysite.com/helpdocs/donotopen/chapter1/index15.html"
onclick="Validate(this.href)"
This ‘Validate’ function seems pretty versatile, by the way…
Quote:
So I was wondering what's the most common way to call javascript
functions from html as onclick or straight in the href?
|
There’s nothing straight about the javascript pseudo protocol. It’s bad
for accessibility, very buggy in Internet Explorer and totally
unnecessary (so for “most common” in the sense of pure quantity you have
a winner here :).
--
||| hexadecimal EBB
o-o decimal 3771
--oOo--( )--oOo-- octal 7273
205 goodbye binary 111010111011