Forum Moderators: open
<html>
<head>
<script type="text/javascript">
function myFuction(char){
setTimeout('window.location="../country/"' + 'char',3000)
}
</script>
</head><button id="b2" onClick="myFuction('2')"> 2 </button>
</html>
and i tested my rewriteRule, it works well
for the following
<a href="/country/2/"> testing </a>
and i rechange my code as following, and it works fine now. Thanks for your time.
<script type="text/javascript">
var char; // global variable
function myFunction(str) {
char=str;
window.setTimeout("delayit()", 3000);
}
function delayit() {
alert(char);
window.location.href = "/country/" + char + "/";
}</script>