/    Sign up×
Community /Pin to ProfileBookmark

Jump menu control

Hi

I am trying to use a jump menu in dreamweaver but I am unable to get the jump menu to open in a blank window. I have read the tech notes on the macromedia web site about how to achieve a work around but unfortunately it does not give me the control I want.

I am a designer not a programmer but have written the code below which works fine… however here comes the rub, I have now been asked to hide the location bar and specify the new windows height and width. I am hoping someone can shine some light on how to do this using the code I have used already without having to result to getting a new extension for Dreamweaver.

<head>
<script language=”JavaScript”>
function menu_jump(path) {
window.location.href = path.options[path.selectedIndex].value;
}
</script>
</head>

<body>
<form action=””>
<select name=”jumpmenu” class=”selectBox”>
<option selected>Select from here</option>
<option value=”http://www.one.com”>One</option>
<option value=”http://www.two.com”>Two</option>
<option value=”http://www.three.com”>Three</option>
<option value=”http://www.four.net”>Four</option>
<option value=”http://www.five.com”>Five</option>

<input type=”button” class=”buttonStyle” onclick=”window.open(this.form.jumpmenu.options[this.form.jumpmenu.selectedIndex].value);” value=”Go!”>
</form>
</body>

Thanks for any help you may be able to give me on this.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@KravvitzAug 08.2005 — Many browsers won't allow you to hide the location bar for security reasons.

[url=http://www.google.com/search?q=window.open]Take a look at these references for window.open()[/url]
Copy linkTweet thisAlerts:
@WGDauthorAug 09.2005 — Yes I realise I need to put 'location = no' in the code but I have no idea on where to put it, I seem to break the code whenever I try specifying the windows parameters.

Any ideas on where it should go?
Copy linkTweet thisAlerts:
@artoAug 09.2005 — Use third argument of window.open:[CODE]window.open(this.form.jumpmenu.options[this.form.jumpmenu.selectedIndex].value,'','width=300,height=300,location=no,toolbar=no,menubar=no,status=no');[/CODE]Also, close <select> tag.

Arto
Copy linkTweet thisAlerts:
@WGDauthorAug 09.2005 — Many thanks Arto. This is exactly what I was after. I was sure you could do it, but knowing how to do it is another story.

I thank you so much. V much appreciated, you have made one web designer with high blood pressure, MELLOW again! Cheers.
×

Success!

Help @WGD 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 5.16,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...