Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Nov 2004
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    writing javascript using &# char codes?

    is this possible or is there any other way of writing code without the actual characters but just using code?

    Code:
    onclick=
    this will say:
    "onclick="

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    like this ?
    Code:
    "onclick="

  • #3
    New Coder
    Join Date
    Nov 2004
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah i guess i did it that way but the browser interpreted it into text

    but is it possible to make functions and methods work that way using there decimal equivalents?

  • #4
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    if you are thinking about obfuscating ur code using this. no. it will not work...browsers need ur code to be as text to interpret it.


  •  

    Posting Permissions

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