Code:
<div id="editorDiv" style="display:none;"> <textarea id="myEditor" name="myEditor" cols="30" rows="6"></textarea></div>
Code:
var container = document.getElementById("editorDiv"), editor = document.getElementById("myEditor");
<div id="editorDiv" style="display:none;"> <textarea id="myEditor" name="myEditor" cols="30" rows="6"></textarea></div>
var container = document.getElementById("editorDiv"), editor = document.getElementById("myEditor");
// Get a reference to the DOM node
var div = document.getElementById('foo');
// Create the new text content
var newContent = document.createTextNode('bar');
// Replace the existing
function showSchool(thing) {
theSection = document.getElementById(thing);
theSection.style.display = 'table-row';
}
function pageClosing(e){
// For most browsers
e = e || window.event;
// Ensure that the event object is not null
if(e){
var contentEditZone = document.getElementById('rte'); // the DIV with contentEditable=true
contentEditZone.focus();
contentEditZone.execCommand("InsertImage", true, imagePath);
<!-- A text input --> <input type="text" id="myBox" value="" /> <!-- or for a textarea --> <textarea id="myBox" cols="10" rows="3"></textarea>
/* Set the variable el to the html element using getElementById or similar el.style.display
window.onload = OnLoadFunction;
Partial Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Create a fake data source
Dim dataSource
sqlCommand.Parameters.Add("MyEmplid", OracleDbType.Varchar2, 100).Value = emplid;
Public Sub New() vThingObject = New ArrayOfThings() End Sub
Leave a comment: