Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 27, 2018 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simpluslabs/80f4a5438cfd3ae4454db01303f8ec73 to your computer and use it in GitHub Desktop.
Save simpluslabs/80f4a5438cfd3ae4454db01303f8ec73 to your computer and use it in GitHub Desktop.
({
doInit : function(component, event, helper) {
console.log('window object -->'+window.toString());
console.log('document object -->'+document.toString());
var divElement = document.getElementById("testClass");
var liButton = component.find("libutton");
console.log('liButton--> '+liButton);
console.log('div element -->'+divElement.toString());
console.log('inner html -->'+divElement.parentNode.innerHTML);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment