# Change a Variable w/ HTML

**URL:** <https://community.particle.io/t/change-a-variable-w-html/28269>\
**Category:** Getting Started\
**Created:** [January 2, 2017, 1:27am UTC](https://community.particle.io/t/change-a-variable-w-html/28269 "2017-01-02T01:27:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [January 2, 2017, 5:46pm UTC](https://community.particle.io/t/change-a-variable-w-html/28269/4 "2017-01-02T17:46:43Z")

</div>

Hi @Rftop

You need a Particle function to set values--Particle variables are read-only. Here's a simple tutorial to help you along (note the syntax for Particle variables has been simplified since this was written, so check the doc):

> [@Tutorial: Spark Variable and Function on One Web Page](http://community.particle.io/t/tutorial-spark-variable-and-function-on-one-web-page/4181):
>
> Let’s say you have a Spark core with both a Spark variable and a Spark function. In my case, I have the world’s simplest servo control sketch, using the nice miniature servo in the Spark Maker Kit. Using these parts, we will build a servo that you can control from a web page anywhere and monitor the position of the servo too! Here’s a preview of the finished tutorial: [image] There is a coarse adjust slider, two fine adjust buttons, and the current position of the servo is displayed. That…

---

_[View the full topic](https://community.particle.io/t/change-a-variable-w-html/28269)._
