Re: using href="#" vs href="javascript:func()" ?



kelvlam said the following on 7/17/2006 5:19 PM:
Hello,

I'm a new begininer with JavaScript. I'm trying to figure out which is
the best approach, and to understand the differences between them.

Did you try finding an FAQ for this group? This question is covered in it.

<URL: http://jibbering.com/faq/#FAQ4_24>

I have a <A> element that's suppose to either launch a popup window, or
it will link you to some dynamic created page.

I have declared a global JavaScript function

function showStatus(sMsg)
{
window.status = sMsg ;
return true ;
}

What makes you think that function does anything?


I know there are 3 ways to create this <A> tag

There is, at least, one more way.


<snip>

Can some JavaScript expert and Guru shed some light to this newbie
please? :-)

See Above.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.



Relevant Pages

  • using href="#" vs href="javascript:func()" ?
    ... I'm a new begininer with JavaScript. ... middle of a page, click the link, the entire page will jump to top. ... javascript function, isn't the same as the "this" in option 1. ...
    (comp.lang.javascript)
  • Re: How to handle case-sensitivity of cookie?
    ... kelvlam said the following on 8/21/2006 2:20 PM: ... I'm still a bit new with JavaScript, and I hope the guru here can shed ... My problem is how do I handle the "path" parameter in cookie. ...
    (comp.lang.javascript)