1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How run a JS with a button inside FBML?

Discussion in 'FaceBook' started by auuuu, Feb 15, 2011.

  1. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
    Anyone can help me?

    I've tried with this:

    <script type="text/javascript">
    function LOL() {
    FUNCTION
    }
    </script>
    <input type="button" value="Press to Activate" onclick="LOL()" />

    But doesn't works [​IMG] Anyone can hep to figure out?
     
  2. Fuggz

    Fuggz Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 25, 2010
    Messages:
    583
    Likes Received:
    600
    If you are adding this code to the Static FBML app, it will not work, it will only show HTML.
     
  3. chronic

    chronic Newbie

    Joined:
    Aug 15, 2008
    Messages:
    38
    Likes Received:
    27
    Only way you can really do this is to use an HTML iframe to a webpage that contains the button.
     
  4. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
    Can you tell me more please?
    I need to put the JS in my website and then iframe it into the FBML?