Drop down jump menu (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


BillCo -> Drop down jump menu (2/22/2001 17:46:00)

What do you change to have a new window open up when the drop down menu jump box is used ?
I used the one at http://www.outfront.net/FAQ.htm .





Dixiedi -> RE: Drop down jump menu (2/22/2001 19:04:00)

For a link to open in a new window you must have a link similar to this:
<a href="page.htm" target="blank">link</a>

You should be able to go into the HTML and edit the link for that particular link to include the target.

In a drop down menu, your links will look something like:
<option value="page.htm">link</option>

So you would have to have:
<option value="page.htm" target="blank">link</option>


------------------
Webmaster Resources Made Easy. http://www.webdesigns-4-you.com





BillCo -> RE: Drop down jump menu (2/23/2001 20:16:00)

I tried adding the target="blank", it's not working ?
I think it might have something to do with the javascript ?
Any other ideas ?




Dixiedi -> RE: Drop down jump menu (2/23/2001 20:17:00)

Sorry, that is the only possible way for it to have worked.

Sorry also that I did not give it a try before I posted it, I usually do test anything that "shoud" work to make sure that it will work.

------------------
Webmaster Resources Made Easy. http://www.webdesigns-4-you.com





BillCo -> RE: Drop down jump menu (2/23/2001 16:36:00)

Does anyone have any ideas how to open a new window using the jump menu ? This is the same one suggested on the FAQ page.




Goober -> RE: Drop down jump menu (2/23/2001 19:51:00)

See if putting an underscore in front of the word, "blank" makes any difference...<...target="_blank">

?????
Sandy

------------------
www.alleghenyweb.com





BillCo -> RE: Drop down jump menu (2/25/2001 22:11:00)

I tried target="_blank" , it did not work ?
Any other ideas ?
Thanks.




Da New Guy -> RE: Drop down jump menu (4/2/2001 20:06:00)

BillCo
Below is a slice of code taken from one of my sites that is currently performing the task about which you asked. This is one way of doing it, there may be others, but this way works for me.

This code goes before the <option values begin. I hope this is of some help to you. Please be sure to post back and let us know how you come out on this matter. Good luck.

DNG


<select size="1" name="NAME YOU HAVE CHOSEN" onchange="window.open(this.options[this.selectedIndex].value,'_blank')">





MystikPrince -> RE: Drop down jump menu (12/7/2007 15:42:28)

Using FrontPage 2003 go to FORMAT menu > click on BEHAVIORS > then on the right hand side, double click the "onchange jump menu" > for each entry, click/highlight and then using the drop-down menu on the right of "Open URLs in:" select NEW WINDOW.

Here is an example of the code FrontPage generates:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script language="JavaScript">
<!--
function FP_jumpMenu(el,frm,sel) {//v1.0
var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}
// -->
</script>
</head>

<body>

<p>
<select size="1" onchange="FP_jumpMenu(this,'_new',false)" id="id1" name="links">
<option value>Links</option>
<option value="http://www.yahoo.com">yahoo</option>
<option value="http://www.google.com">google</option>
</select></p>

</body>

</html>




jaybee -> RE: Drop down jump menu (12/7/2007 17:22:17)

Whilst it's very nice of you to give that answer, the thread is almost 7 years old. I sincerely hope he's figured it out by now.
[;)]

Welcome to Outfront. [:D]




kdy -> RE: Drop down jump menu (3/17/2008 13:26:50)

Hey, it may have been seven years ago, but I just asked the question today and was very happy to find the answer! I say leave it up.

I had tried the target=_blank, I had gone to the behaviors dialogue box and sat there looking at the available options, but what I never would have figured out is to double-click on jumpmenu.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125