Forums

This topic is locked

from Jump menu = new window

Posted 13 Nov 2002 21:46:38
1
has voted
13 Nov 2002 21:46:38 Don Thomas posted:
Under Insert Jump Menu Dialogue box, the only option I am able to select is: Open Urls in Main Window in Dreamweaver MX. What would be the code to add to the "select" tag or that general area of code that would enabe a Jump menu to open the next page in a New
Window?

Don Thomas

Replies

Replied 03 Dec 2002 11:56:21
03 Dec 2002 11:56:21 Dan The Man replied:
with that script it is not possible to open it in a new window.
try this
<html>
<head>
<title></title>
<script language="JavaScript" type="text/JavaScript">
<!--
function SD_jumpMenu() {
goTo.href=myForm.List.value;
}
//-->
</script>
</head>
<body>
<form action="" method="get" name="myForm">
<table border="0" cellspacing="4" cellpadding="0">
<tr>
<td><select name="List" size="1" onChange="SD_jumpMenu();">
<option>choose one</option>
<option value="one.html">page one</option>
<option value="two.html">page two</option>
<option value="three.html">page three</option>
</select></td>
<th><a id="goTo" href="#" target="_blank" onclick="">Go</a></th>
</tr>
</table>
</form>
</body>
</html>
Replied 04 Dec 2002 08:24:01
04 Dec 2002 08:24:01 Dan The Man replied:
i second thought this will work better
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<script language="JavaScript" type="text/JavaScript">
<!--
function SD_jumpMenu() {
window.open(myForm.List.value);
}
//-->
</script>
</head>
<body>
<form action="" method="get" name="myForm">
<select name="List" size="1" onChange="SD_jumpMenu();">
<option>choose one</option>
<option value="one.html">page one</option>
<option value="two.html">page two</option>
<option value="three.html">page three</option>
</select>
</form>
</body>
</html>

Reply to this topic