Wanting to use this script -
http://www.dynamicdrive.com/dynamici...newwindow2.htm
trying to edit the script to allow for the use to get the choice.
I change the following as instructed:
However when I do this and try and click the button I get the following error:Code://1)Enter domains to be EXCLUDED from opening in new window: var excludedomains=["hodesnauser.com", "skipped.com"] //2)Automatically open offsite links in new window? (1=yes, 0 will render a checkbox for manual selection) var auto=0
"Error: 'mydomain' is undefined."
It is referencing this line -I changed it to:Code:if (document.links[i].hostname.indexOf(mydomain)==-1)This seems to make it work, but I wanted to verify with others that this is the correct change.Code:if (document.links[i].hostname.indexOf(excludedomains)==-1)
Thanks - WwTIPPYwW



Reply With Quote
Bookmarks