unwanted page reload



After double-clicking the link the browser wants to reload the page,
even though there is not any link at all.
It doesn't happen if I change the "ondblclick" event to "onclick"

<a href="" ondblclick="show_div('the_div_3'); return false;">Div 3</a>
<div style="display: none;" id="the_div_1">This is div 1</div>

The javascript function is really a basic one...

<script type="text/javascript">
function show_div(div_id) {
document.getElementById(div_id).style.display = 'block';
}

</script>


Any hint?

regards- julian

.



Relevant Pages

  • Re: Invoke JS function from extenal application
    ... Running Instance of Internet Explorer" tells you how to do this. ... of the document in the browser. ... >> Vadivel Kumar ... >>> Does anyone know if it is possible to invoke a Javascript function in a>> web ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Invoke JS function from extenal application
    ... > model of the document in the browser. ... >> Let's say we have a web page with a javascript function called ... >> Then in a windows app, I have a form with a textbox and a button. ... >> 2) I would like to invoke the javascript directly (i.e. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: wget pages that use java reflection and jsp
    ... On the server, and it gets downloaded by your web browser. ... No matter what your browser does, on a given page, it must be able to, obviously, read the code. ... This javascript function is either elsewhere in this HTML document, or it's in another document that's referenced by a URL in a directive. ... There are various tricks some can play, to keep you from getting the code, such as using cookies and refusing to return the external javascript document unless the cookies are right. ...
    (comp.os.linux.misc)
  • Re: Any way to disable setInterval function for a browser?
    ... specific Javascript function but not disable Javascript completely. ... they may use setTimeout or the non-standard marquee ... But you can use a browser that doesn't support the marquee ... or one like Firefox with the NoScript add-on that allows you ...
    (comp.lang.javascript)
  • Re: location.replace question
    ... site users while the data is being loaded. ... location.replacejavascript function to do this. ... You need to control what your server is sending to the browser during ... You are not the first person facing this challenge. ...
    (comp.lang.javascript)