hi,
can someone help me with psudoprotocol in javascript..i mean what is it and how does it work exactly?

"Pseudoprotocol" (or "pseudo protocol") is sometimes used as a synonym for "javascript url", ie. a link of the form :-

<a href="javascript:do_something();">Click Me</a>

This form should not be used as it is not supported by all browsers.

You have two options :-

<a href="#" onclick="do_something(); return false">Click Me</a>
<!-- return false suppresses the default hyperlink behaviour -->

or (even better)

onload = function() {
  document.getElementById('myLink').onclick = function {
    do_something();
    return false;
  }
};

with

<a id="myLink">Click Me</a>

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.