? Help?
i want make change to url = [url]http://amazon.com/asdd/di/B000345/—
i want get the B000345 with length.
how can i check for length, i check for amazon.com , but scriptis not work on check the length 7(B000345)
check the attachments
function parseLink() {
var url = document.addForm.linkurl.value.toLowerCase();
if ( url.indexOf(“amazon”) != -1 ) {
var aIndex = 0;
var merchlist = document.addForm.merchant;
for (i=0; i< merchlist.length; i++) {
if (merchlist.options[i].text.toLowerCase() == “amazon”) {
aIndex = i;
}
}
document.addForm.merchant.selectedIndex = aIndex;
var output = “”;
var temp = new Array();
temp = url.split(“/”);
document.addForm.remoteid.value = temp[5];
}
}
</script>
[upl-file uuid=86076177-e23d-4d63-afc8-d68fc334eb38 size=10kB]Image3.jpg