[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

same link - multiple URLs?

Posted on 2000-01-19
2
Medium Priority
?
168 Views
Last Modified: 2010-04-09
By clicking on a link I should be able to bring up the HTML file corresponding to the current month (I have 12 html files one for each month) How can I create the link to do this?
0
Comment
Question by:wariar
2 Comments
 
LVL 1

Accepted Solution

by:
deepchanda earned 300 total points
ID: 2367979
You would have to use some javascript to perform this task .. here it goes .......
say this is your link <a href="" onClick="callpage()">....</a>

put this in the header portion of the page
<script>
function callpage() {
            // this line would return you the current month 0 thru 11
            mm = date.getMonth();
            //
           window.location.href="page" + mm + ".html";
}

let me know if u need more info on this

DC
0
 

Author Comment

by:wariar
ID: 2368103
Thanks! that helped a lot.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question