Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. How to read the body of methods in JavaScript

How to read the body of methods in JavaScript

Scheduled Pinned Locked Moved JavaScript
javascripttutorial
4 Posts 4 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sainath437
    wrote on last edited by
    #1

    I want to read the Javascript method body how could I do this, could u refer me few links Thanks SaiNath

    S K M 3 Replies Last reply
    0
    • S sainath437

      I want to read the Javascript method body how could I do this, could u refer me few links Thanks SaiNath

      S Offline
      S Offline
      Sunasara Imdadhusen
      wrote on last edited by
      #2

      You want to read the code which is inside the {} of function? :-D

      sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464

      1 Reply Last reply
      0
      • S sainath437

        I want to read the Javascript method body how could I do this, could u refer me few links Thanks SaiNath

        K Offline
        K Offline
        Karthik A
        wrote on last edited by
        #3

        Are you saying you want to read the method body?? I don't see why you would want to do that, but this link might be useful - http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256BF8004D72D6[^] This one loops through all properties in an object passed and you could modify this method to find out the contents of your function alone. Out of curiosity, if you don't mind, what is this for?

        Cheers, Karthik

        1 Reply Last reply
        0
        • S sainath437

          I want to read the Javascript method body how could I do this, could u refer me few links Thanks SaiNath

          M Offline
          M Offline
          moocr com
          wrote on last edited by
          #4

          function func(){
          alert('1');
          }
          document.write(func);

          try it! moocr.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups