Results 1 to 2 of 2

Thread: how to use return function?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    93

    how to use return function?

    hi,
    i have this:

    <a href="#folder" onClick="return ok"></a>

    this is working fine but,
    i want switch the link for a function.
    i want put a function calling the return
    something like this:

    function call_return_ok() {
    call the href="#folder"
    return "ok"
    }

    how can i do that?
    thans a lot for your help

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: how to use return function?

    I'm not entirely sure what you're after, but:

    Code:
    <a href="#folder" onClick="return call_return_ok()"></a>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width