/    Sign up×
Community /Pin to ProfileBookmark

form menu framing link

I have a form that contains all 50 states within it. When you click on said state I need it to open an html page into a certain frame. Is this possible? I have the form created and working but the pages open in the same window.

<script language=”JavaScript” type=”text/JavaScript”>
<!–
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+”.location='”+selObj.options[selObj.selectedIndex].value+”‘”);
if (restore) selObj.selectedIndex=0;
}
//–>
</script>
</head>
<body>
<form name=”form1″>
<select name=”State” onChange=”MM_jumpMenu(‘parent’,this,0)”>
<option selected>Choose Your State</option>
<option value=”states/alaska.htm”>Alaska</option>
<option value=”states/alabama.htm”>Alabama</option>
<option value=”states/arizona.htm”>Arizona</option>
<option value=”states/arkansas.htm”>Arkansas</option>
<option value=”states/california.htm”>California</option>

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorFeb 26.2004 — Try:

<select name="State" onChange="MM_jumpMenu('[color=red]_blank[/color]',this,0)">
Copy linkTweet thisAlerts:
@tmjames128authorFeb 26.2004 — When I try that I get and error on the page. Stating that 'ContentFrame' is undefined

<form name="form1">
<select name="State" onChange="MM_jumpMenu('ContentFrame',this,0)">

<option selected>Choose Your State</option>

<option value="states/alaska.htm">Alaska</option>

<option value="states/alabama.htm">Alabama</option>

<option value="states/arizona.htm">Arizona</option>
×

Success!

Help @tmjames128 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.1,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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