How to create html online Editor in blogger

 How to create html online Editor in blogger


To put the online editor in your blog follow these step:
1.First create a page
2.Then change the compose view to html view and past the code


<!DOCTYPE html>
<html>
<head>
<title></title>

<style type="text/css">


.text
{
width :100%;
height :500px;
overflow :scroll ;
color :#6463d7;
}
.iframe
{
width :100%;
height :500px;
overflow :scroll ;
}
</style>

</head>
<body>


<textarea  contenteditable="true" id="div" class="text"><!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

</body>
</html></textarea>


<button onclick="res();" class="btn">Result</button>



<iframe src="" id="iframe" class="iframe"></iframe>

<script type="text/javascript">


var div = document.getElementById("div");
var iframe = document.getElementById("iframe");


function res(){

iframe.src ="Javascript:'"+div.value+"' ";


}

</script>
</body>
</html>

Comments

Popular posts from this blog

Getting Started with JavaScript

JavaScript fundamentals

How to create a list group with css