Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


Hiding JavaScript

hiding javascript

  • Please log in to reply
 

#1 SmartWeb

SmartWeb

    Senior Member

  • Designer
  • 271 posts

Posted 18 December 2012 - 05:22 PM

JavaScript supports almost all web browsers, however still not all. If a user on your site is using a browser that JavaScript doesn’t recognize, instead of running the script the page displays the code. To prevent your site from displaying the code, you can add a small HTML code to your JavaScript’s basic format. Add an HTML comment tag right after your opening JavaScript tag and also add an HTML close comment tag right before your closing JavaScript tag.: <script type=”yourtext/javascript”> < !--…your script… //--> </script>.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users