Hello everyone,
How can i split my link so i only get the second part out of my link
right now i’m getting this: http://somesite.com/index.html?bpKey=Hub_Intro
and i only want the second part of this : bpKey=Hub_Intro to
please help out! :hr:
i have this piece of code here :
</div>
<div style="text-align:middle; margin-middle:">
<FORM NAME="myform">
<SELECT NAME="mylist" onChange="nav()">
<OPTION VALUE="none"> Select a language
<OPTION VALUE="../fr/"> Français
<OPTION VALUE="../de/"> Deutsch
</SELECT>
</FORM>
</div>
<SCRIPT LANGUAGE="javascript">
var deepLink = '';
function nav()
{
var w = document.myform.mylist.selectedIndex;
var url_add = document.myform.mylist.options[w].value;
if (url_add != "none")
{
window.location.href = url_add + "?" + deepLink;
}
}
function setDeepLink( dl ) {
alert(dl);
deepLink = dl;
}
</SCRIPT>