Forums

Add javascript to an entry (2 posts)

  1. mihaigrigori
    Member
    Posted 5 years ago #

    I'm trying t add a piece of javascript code in one of my entries but the code is interpreted by wordpress so it doesn't have the effect I want.
    I.E.
    adding <script>alert('hello')</script>

    will enclose it into paragraph and also will convert ' to html code...

    i'm using WP 2.02

    Any ideas?

    Thanks!

  2. moshu
    Member
    Posted 5 years ago #

    1. Don't put code ever in the wysiwyg editor.
    2. http://codex.wordpress.org/Using_Javascript

Topic Closed

This topic has been closed to new replies.

About this Topic