Results 1 to 4 of 4
  1. #1
    Sam97 is offline Member
    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0

    Default 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

    As you might notice the pdf file name changes based on the month and the year.. jan, feb, mar ..etc and for the year 2012 then 2013.

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

    I appreciate any help.

    Thanks

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    10,438
    Rep Power
    16

    Default Re: How can I create a dynamic hyperlink with JavaScript?

    Are you talking a Java web app here, or just Javascript?
    Please do not ask for code as refusal often offends.

  3. #3
    Sam97 is offline Member
    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0

    Default Re: How can I create a dynamic hyperlink with JavaScript?

    Javascript

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,918
    Rep Power
    16

    Default Re: How can I create a dynamic hyperlink with JavaScript?

    You need to find a JavaScript forum. This isn't one. I'm closing the thread as off topic.

    db

    THREAD CLOSED
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. Dynamic web project using separate Javascript
    By alexisjk in forum Advanced Java
    Replies: 1
    Last Post: 02-01-2012, 08:46 PM
  2. dynamic table preparation+html+javascript
    By sandy1000 in forum JavaServer Pages (JSP) and JSTL
    Replies: 6
    Last Post: 01-05-2011, 11:24 AM
  3. Help Create Dynamic Srcollbar
    By JavaBender in forum AWT / Swing
    Replies: 7
    Last Post: 08-14-2010, 09:31 AM
  4. Problem--How to create dynamic tree structure in jsp using javascript
    By natu in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 08-11-2010, 08:11 AM
  5. How to create a hyperlink from a text in Java
    By javanewbie in forum New To Java
    Replies: 2
    Last Post: 06-05-2009, 02:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •