Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9072621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:12:47+00:00 2026-06-16T18:12:47+00:00

I am exploring Zotonic and I am trying to create a page containing both

  • 0

I am exploring Zotonic and I am trying to create a page containing both HTML and Javascript (within ). Yet, when I save my page, the Javascript is removed and not saved.

Is there any way to create a simple HTML page with Javascript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:12:49+00:00Added an answer on June 16, 2026 at 6:12 pm

    You can add javascript directly into your templates, or you can add it in yoursite/lib/js/yourscript.js

    If you add it in your sites lib directory, you can add it to your template like this:

    {% lib "js/yourscript.js" %}
    

    http://zotonic.com/docs/0.9/ref/tags/tag_lib.html?highlight=lib

    It is not possible to add javascript from the content management system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm exploring the possibilities of the ASP.net Webpages 2 with Razor, and trying to
I'm exploring alfresco action tag. Following action tag does not specify permission <action id=document-copy-to
I'm exploring Rails for the first time and trying to add some fairly straightforward
I've just started exploring using svgs within rails. I want to dynamically update a
I'm currently exploring the different options for building a not-too-complex web application, in which
So I have been exploring different methods to clean up and test my JavaScript.
I've recently started exploring the world of search, and am trying to use ES
I started exploring ajax, and somehow I'm fine with it, not too hard and
I've been exploring ideas how to create thumbnails from a user upload and store
Exploring Javascript (and coming from the Java world). I have the following line of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.