Guest User

Untitled

a guest
Jan 16th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var el = Document.CreateElement(fieldTag);
  2. el.Id = fieldId;
  3. el.Name = fieldName;
  4.  
  5. foreach(var attr in AttributesAndValues)
  6. {
  7. el.SetAttribute(attr.Key,attr.Value);
  8. }
  9.  
  10.  
  11. var body = Document.GetElementsByTagName("body")[0];
  12.  
  13. body.AppendChild(el);
Add Comment
Please, Sign In to add comment