BUG ? : JAVASCRIPT in HTML block, shows plain HTML
PermalinkHere I am trying to add select box with JAVASCRIPT on HTML block , but on saving it, it shows only select box. I have attached screenshot.
Is it bug ?

The HTML block accepts HTML and JavaScript.
@srjahir32
What is the code you are trying to add to the HTML block?
Do you have a link to the website where this code was added?
There is select box, Exrx.net Quick LInks.
Here is that JS code,
<script LANGUAGE="JavaScript"> var sid="mitnamdliw_wildmantim"; function selectaplace(form) { var appname= navigator.appName; var appversion=parseInt(navigator.appVersion); if (appname == "Netscape" && appversion >= 3) { var formindex=form.select1.selectedIndex; var storage=form.select1.options[formindex].text; if (form.select1.options[formindex].value != "none") { var msg=storage+"You are now being transferred to the -> "+storage; for (var spot=0;spot<msg.length-storage.length;spot++) { var x=msg.substring(spot,msg.length); form.select1.options[formindex].text=x; for(var d=0;d<150;d++) { }; }
<script type="text/javascript"> function selectAPlace(form) { var formIndex = form.select1.selectedIndex; window.location = form.select1.options[formIndex].value; } </script> <form> <select id="select1" onChange="selectAPlace(this.form)" style="width:100%;" class="Add-Margin-Bottom"> <option value="index.html">ExRx.net Quick Links</option> <option value="Lists/Directory.html">Exercise & Muscle Directory</option> <option value="Lists/OlympicWeightlifting.html">Weightlifting Exercises</option> <option value="Lists/PowerExercises.html">Plyometric Exercises</option> <option value="Lists/KettlebellExercises.html">Kettlebell Exercises</option> <option value="Lists/CardioExercises.html">Cardio Exercises</option> <option value="Lists/OtherExercises.html">Other Exercises</option>
Some time ago I've accidentially used html block to try something out and had the same experience that js was not working together with that block. As I normally don't use this block, I didn't try to find out what's wrong, instead I blamed the block. ;-)