How to create a page with Javascript content on WordPress

  • Author
  • #784246

    I am quite new with WordPress and have been spending almost two weeks trying to work out how to embed JavaScript on a WordPress page. I have a domain and using WordPressas as a website and not as a blog (I am not sure if this last sentence makes any sense). I have been reading plenty of tutorials on JavaScript not working on WordPress, others saying it works and explaining how to activate the JavaScripts from the header, others from the footer and so on, but at the end of the day I am still here with nothing gained.
    Is there anyone who is willing to give me any support please.
    I would actually need an answer for dummies please.

    The following are the two pages I am tryng to set up:

    Thank you for any support.



    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at If your question is about a self-hosted WordPress blog then you’ll find help at the forums.

    If you don’t understand the difference between and, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.



    The link you posted above are not to a free hosted blog and you are posting to the wrong support forum. We cannot help you here. You must post to

    This is a multiuser blogging platform. I don’t know why you did not locate this entry in the support documentation. You cannot use JavaScript on a free hosted blog as the software will strip the code to provide security and stability. vs The Differences.


    That site is self-hosted so you need to follow the link the supportbot gives to the wordpress.ORG forums.


    G’day Timethief!!!!



    G’day to you thesacredpath :)



    My customer want to move his site to, so I started moving the content and text. Now I don’t know how to move the floor plans, which are an image map with open new browser window on roll over.

    Here is an example of the pages I need to put in my new wordpress plateform.

    Any clues on how to do that ? I was thinking I could leave the plans alone on that site, and on the wordpress site make a link, but it would be nicer to have it all in the same place.

    Thank you



    @maletarte: Your question is not related to JavaScript content. For the sake of organization, please start a separate topic and we’ll take it from there:


    Ehi “Mr. Organizer” don’t take it too seriously!
    As I said already, I am new to WordPress and I did not know there were two different blogs!
    You are just repeating what timethief and supportbot said 10 days ago!


    He was replying to maletarte who is asking about a different issue and to prevent confusion for those that may come to threads in the future, we ask them to start a new topic.



    Well I would like the answer. I’d like to share the Tripit badge. After entering the code, on my page, upon saving wordpress eats everything javascript related.
    The javascript looks like
    <div id="tripit-badge"><script type="text/javascript" src=""></script><noscript><a href="">TripIt - Organize your travel</a></noscript></div>


    You can post the source code for the badge using the sourcecode shortcode as explained in this support document.



    Hmmm, not what I had in mind. I don’t want my visitors to show the source code, I want the javascript to be executed for my visitors.
    When I type in the above code in the HTML section when editing the page, and I then hit the save button, reduces it to:

    <div id="tripit-badge"><a href="">TripIt - Organize your travel</a></div>




    javascript is not allowed on WordPress.COM for security and reliability reasons.

The topic ‘How to create a page with Javascript content on WordPress’ is closed to new replies.