Nested functions for changing a link in the resourceCenterOpenURL javascript

We use the javascript in a sandbox module in our Resource Center to provide contextual help URLs based on the URL the visitor is on when they click the module, and it works great.

https://github.com/pendo-io/snippets/tree/master/resourceCenter/resourceCenterOpenURL

However!!

We now want to see about using a function within this javascript to change the link based on detecting a screen element in the sitewide navigation -- to direct visitors to the correct part of the knowledgebase based on which product they are logged in to within the same platform.

Has anyone attempted this or want to help me decipher the correct syntax? :D

0

Comments

1 comment

Please sign in to leave a comment.

Didn't find what you were looking for?

New post