java script in menu

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
jnovian@premiereradio.com
Beginner
Beginner
Posts: 3
Joined: Sun May 19, 2002 7:24 pm

java script in menu

Post by jnovian@premiereradio.com »

How can I make a link open in a page with specific settings (now tool bars, no resize, etc.) using a script? For example, if I wanted to do this in plain text in HTML on a page, the link would look like this:

Schedule
of Availabilty


HERE IS THE SCRIPT (in the HEADER):

<script language="JavaScript">
<!-- Hide the script from old browsers --
function surftonew(form) {
var myindex=form.dest.selectedIndex
window.open(form.dest.options[myindex].value);
}
//-->
</SCRIPT>




Thank you for your help!

Justin Novian
jnovian@premiereradio.com
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: java script in menu

Post by Andy »

in the area in the menu array where you would put the href put javascript:surftonew(document.formname)
Post Reply