Created
November 25, 2014 02:04
-
-
Save antonioortegajr/49474b6bebfd595acf1c to your computer and use it in GitHub Desktop.
auto append agent ID on IDX Broker bio page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// script will pull agent ID from bio page url and auto append to cookie lead to that agent | |
var local = location.href; | |
var pathArray = window.location.pathname.split( '/' ); | |
var append = '?agentHeaderID='; | |
var appendID = pathArray[3]; | |
var capture = local+append+appendID; | |
window.location.assign(capture); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
scripts are unsupported by IDX Broker. DO NOT contact IDX Broker for support on any scripting found here