Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.



<h1>Τι μπορούμε να κάνουμε με την JavaScript;</h1>
<h2 id="test">Αλλαγή HTML</h2>
<button type="button" onclick="document.getElementById('test').innerHTML = 'Γεια σου κόσμε, είμαι η Javascript!'"> Click Me!</button>
 <h1>Με την JavaScript μπορούμε να αλλάξουμε εικόνες</h1>
 <h2>Κάντε Click στην λάμπα.</h2>
<img id="myImage" onclick="changeImage()" src="" width="300" height="480">
<h2 id="changeme">Με την JavaScript μπορούμε να αλλάξουμε το style ενός HTML στοιχείου.</h2>
<button type="button" onclick="Function1()">Click Me!</button>
<h1>Με την JavaScript μπορούμε να επικυρώσουμε δεδομένα.</h1>
<h2>Δώσε έναν αριθμό απο το 1 μέχρι το 10:</p>
<input id="giveme">
<button type="button" onclick="Function2()">Submit</button>
<p id="showme"></p>








                function changeImage() {
    var image = document.getElementById('myImage');
    if (image.src.match("yellow")) {
        image.src = "";
    } else {
        image.src = "";

function Function1() {
    var x = document.getElementById("changeme"); = "40px";       = "red"; 

function Function2() {
    var x, text;
    x = document.getElementById("giveme").value;
    if (isNaN(x) || x < 1 || x > 10) {
        text = "Λάθος δεδομένα";
    } else {
        text = "ΟΚ";
    document.getElementById("showme").innerHTML = text;