Hi, I have a complex Java script questions. I am working with an application where I need to alter the logout page to go to a specifc url based on the referring path. Then I need to append some text to it.
I can only work in html/Java script. The output page needs to redirect to a specific page. Thats the goal.
Here you go :)
Now in the code below, document.referrer url will be in this format:
https://domian.dd.com/csc/cp9/?cmd=loginThe url can also be
https://domian2.dd.com/csc/cz9/?cmd=login ect... with the domain info and the part of cp9 and cz9 to be changed only.
What I want is to take the referrer url and remove the /?cmd=login piece and then replace it with:
SITE/NODE/h/?tab=MYPAGE
So the ending url where the page should go to be:
https://domian.dd.com/csc/cp9/SITE/NODE/h/?tab=MYPAGE&ErrorMsg=Invalid ID or Password
How do i do that.
It needs t redirect right away so user would not know. :) or as fast as possible.
Thanks
Start Free Trial