how work? , other ways it?? //------------------------------------
redirect = function(sectionname){
document.location.assign('about/' + sectionname + '/');
};
if block menu mean html menu made of other html elements divs, ordered / unordered lists response below applies, other that, please explain in detail mean block menu
select object contains reference html "select" tag, options in line var opsarray= select.options; code provided not work block menus.
you have have create function looks totally different.
let's menu:
<ul id="list"> <li id="about" onclick="redirect(this.id)">about</li> <li id="news" onclick="redirect(this.id)">news</li> </ul>
your javascript code have be:
redirect = function(sectionname){ document.location.assign('projects/' + sectionname + '/'); };
this 1 way it, there many ways this. understood question correctly.
Comments
Post a Comment