Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="welcome-text">
- <p><a href="#" id="editProfile">Edit your profile</a></p>
- </div>
- <script>
- // get username
- var userName = window.top._jive_current_user.username;
- // build the URL
- var profileURL = window.top.location.protocol + "//" + window.top.location.hostname + "/people/" + userName;
- // update link
- document.getElementById("editProfile").href = profileURL;
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement