i have an JavaScript code for my drop down menu which i linked it to my simple HTML page. it is completely written in JavaScript. i want it to work as when i even click on the sub menu it can be linked to another page not just the items under sub menu. here is my code:
var fix = 0; var delay = 2000; var modd = 0;
var bar = new menuBar();
bar.addMenu('HOME');
bar.addMenu('ABOUT US');
bar.addMenu('TECHNOLOGY');
bar.addItem('Backgroung.html','Background');
bar.addItem('Innovation.html','Innovation');
bar.addItem('Advantages.html','Advantages');
bar.addItem('Singlestage.html','Single Stage');
bar.addItem('multistage.html','Multi Stage');
so i want to click on HOME and it takes me to the Home.html. what is the code for it?
var fix = 0; var delay = 2000; var modd = 0;
var bar = new menuBar();
bar.addMenu('HOME');
bar.addMenu('ABOUT US');
bar.addMenu('TECHNOLOGY');
bar.addItem('Backgroung.html','Background');
bar.addItem('Innovation.html','Innovation');
bar.addItem('Advantages.html','Advantages');
bar.addItem('Singlestage.html','Single Stage');
bar.addItem('multistage.html','Multi Stage');
so i want to click on HOME and it takes me to the Home.html. what is the code for it?