javascript - How to create dynamic URL without using anchor href? -


how create dynamic url without using anchor href ?

<a name="link";href="php_files/category_template.php?x=<?php echo $link[$j];?>"><?php       echo $title[$j];?> </a></li> 

i have working read csv , make page on fly so, want move page without using href.

thanks & regards

you can use onclick event of js locatio.href this

<div onclick="location.href='php_files/category_template.php?x=<?php echo $link[$j];?>';"> <?php echo $title[$j];?> </div> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -