how to create a dynamic URL?

admin

Administrator
Staff member
I want to use JavaScript to create a URL from a strring and a date, but I haven't been able to do it successfully. For example, I want to do something like this:

onclick='"/myAction.do?dtg=" + new Date().getTime()'

so the actual RUL will be: /myAction.do?dtg=1234567

Any suggestions?
 
Back
Top