Skip to content

Instantly share code, notes, and snippets.

@nancystodd
Forked from cmcdevitt/globalJS
Last active May 1, 2018 00:03
Show Gist options
  • Save nancystodd/0e4ef8738c327824abb740265c37f918 to your computer and use it in GitHub Desktop.
Save nancystodd/0e4ef8738c327824abb740265c37f918 to your computer and use it in GitHub Desktop.
Explore Global JavaScript Object in ServiceNow in a UI Page - Modified to show property values
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<script>
document.writeln("Prototype.Version: " + Prototype.Version + "<br />");
document.writeln("Lets look at Global in ServiceNow: <br />");
myGlobal = this;
for(myProp in myGlobal){
document.writeln(myProp + ": "+ myGlobal[myProp]+"<br /><br />");
}
</script>
</j:jelly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment