www.webdeveloper.com
Results 1 to 5 of 5

Thread: How to see the Algorithm of a javascript function from a webite

  1. #1
    Join Date
    Dec 2012
    Posts
    6

    How to see the Algorithm of a javascript function from a webite

    Hello ,

    in this html below , the function fileNameClickAction is triggered when the user click on a link , is there a way to find in chrome where the function was defined to see it's algorithm.


    <span id="someXML.xml_cell" onclick="fileNameClickAction('data.xml','123456789')" class="gridTextLink">data.xml</span>

    thanks.

  2. #2
    Join Date
    Dec 2012
    Posts
    54
    Can you not right click view source?

  3. #3
    Join Date
    Dec 2012
    Posts
    6
    Yes i can here is the source , but i dont see what the filenameclickaction does

    <span id="someXML.xml_cell" onclick="fileNameClickAction('data.xml','123456789')" class="gridTextLink">data.xml</span>

  4. #4
    Join Date
    Dec 2012
    Posts
    54
    You are showing a Call to a function and not a Function definition.

    Usually the function will be defined somewhere in between two <script></script> tags. If not that then they will be referencing another using the script.src = blahblah.js.

    That is why I said right click view source.
    Next step would be to find the script tags and see if they define it on that page or if they are using a link

  5. #5
    Join Date
    Dec 2012
    Posts
    6
    Yes , thanks for that

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles