PDA

View Full Version : JS: Relative links to HTTPS


Mac
09-12-2008, 04:59 PM
I have a relative link:

<a href="/customer/order/">link</a>

I want it to change to https on click, but Im not sure how to do this.

Any suggestions? Other than hardcoding the link.

thanks, mac

Seymour Clufley
09-12-2008, 10:25 PM
Read the last post in this thread (http://www.htmlforums.com/html-xhtml/t-hyperlink-with-different-urls-for-savetargetas-and-left-click-107503.html). It shows you how to change an href when it's clicked.