View Single Post
Old 02-12-2013, 12:11 PM   PM User | #1
Sam97
New to the CF scene

 
Join Date: Feb 2013
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Sam97 is an unknown quantity at this point
How can I create a dynamic hyperlink with JavaScript?

I have the following links that I would like to create a dynamic hyperlink in Java to point to current month and year in the hyperlink.

http://www.somesite.com/site_media/u...f_jan_2012.pdf

http://www.somesite.com/site_media/u...f_feb_2012.pdf

http://www.somesite.com/site_media/u...f_mar_2012.pdf

http://www.somesite.com/site_media/u...f_apr_2012.pdf

http://www.somesite.com/site_media/u...f_jan_2013.pdf

The pdf file name within each hyperlink is based on the month and the year.. jan, feb, mar ..etc and for the year 2012 then 2013.

How can I create a dynamic hyperlink that will always display the current month and year?

I appreciate any help.

Thanks
Sam97 is offline   Reply With Quote