SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    stopping default events..

    Right now i'm doing the following:

    function something(f) {
    if (!window.compat) return true; //default event will continue;
    new bla(f);
    return false;
    }

    <a href="#" onclick="return something(..);">test</a>

    but i'd rather have this:

    <a href="#" onclick="return new bla(..);">test</a>

    Is it possible?

    Bla is an object.

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe it will be easier to understand if you tell what you exactly want to do


Bookmarks

Posting Permissions

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