/    Sign up×
Community /Pin to ProfileBookmark

Navigation Menu Question

Hello,

I have this javascript cascading navigation menu that I want to modify so when you click on one of the links, it will open the page in a new window. I’m not very good at javascript, but here is a sample of the code.

Menu12=new Array(“Contact”,”contactus.html”,””,0,20,138);

I unfortunately can’t provide the actual menu itself because the page is restrcited, but here is a sample of where I got the menu from.

[url]http://www.dynamicdrive.com/dynamicindex1/hvmenu/horizon.htm[/url]

Any help would be greatly appreciated.

Thanks;

Jeremy

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@NevansMar 23.2004 — Is this any help to you?


---------------------------------------

function OpenWin(winName, newURL, width, height)

{

var win;

var features;

features='left=250, top=200, toolbar=no, directories=no, location=no,status=yes, menubar=no, resizable=yes, scrollbars=yes, width=' + width + ',height=' + height;

win = window.open('', winName,features);

win.location.href = newURL;

}


<a href="javascript?penWin('HelpWin','page.html',300,300)">CLICK ME</a>


---------------------------------------------------------------

Regards

Neil
Copy linkTweet thisAlerts:
@fredmvMar 23.2004 — That menu is actually dangerously inaccessible. Disable JavaScript, and it can no longer be used. At the very least use an [url=http://www.udm4.com/]accessible menu[/url] implementation which is put together correctly by the means of semantic markup, CSS for presentational purposes, and JavaScript for enhanced functionality.
Copy linkTweet thisAlerts:
@jordanjauthorMar 23.2004 — Thank you for the information. This should be very helpful.
×

Success!

Help @jordanj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...