Hi, i have some problem with the url ampersand for product, when i use http://......//index.php?route=product/product&product_id=51 for a link in javascript doesnt work, the & or ampersand is missing any suggest? thanks
URI encoding
& should be %26
but where is the point in doing links with javascript?
& should be %26
Code: Select all
<script type="text/javascript">
var myaddr =
encodeURI("http://......//index.php?route=product/product&product_id=51");
document.write('<a href="' + myaddr + '">link<\/a>');
</script>
Who is online
Users browsing this forum: No registered users and 93 guests