Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7702271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:11:23+00:00 2026-05-31T23:11:23+00:00

This is a simple script to select a State then depending on the State

  • 0

This is a simple script to select a State then depending on the State chosen select a Region, then click to go to that Web Site

It works perfectly in IE.

the code is on http://goldcoast.info/Chat.php

I have tried a lot of things to try get this to work in Firefox, symptom is when you click on the button it will not go to the selected web site.

How would I get this working in Firefox?

<script language='JavaScript'>   
function setOptions(chosen) {
var selbox = document.myform.opttwo;
selbox.options.length = 0;
if (chosen == " ") {
selbox.options[selbox.options.length] = new Option('Please Select State',' ');
}
if (chosen == "NSW") {
selbox.options[selbox.options.length] = new Option('Blue Mountains','bluemountains.info');
selbox.options[selbox.options.length] = new Option('Coffs Coast','coffscoast.info');
}
if (chosen == "QLD") {
selbox.options[selbox.options.length] = new Option('Cairns','cairns.info');
selbox.options[selbox.options.length] = new Option('The Gold Coast','goldcoast.info');
}
if (chosen == "VIC") {
selbox.options[selbox.options.length] = new Option('Geelong','geelong.info');
selbox.options[selbox.options.length] = new Option('Phillip Island','phillipisland.info');
}
}
</script>
<form name="myform"><div class="centre">
State<br>
<select name="optone" size="1"
onchange="setOptions(document.myform.optone.options[document.myform.optone.selectedIndex].value);">
<option value=" " selected="selected"> </option>
<option value="NSW">New South Wales</option>
<option value="QLD">Queensland</option>
<option value="VIC">Victoria</option>
</select><br>Region<br>
<select name="opttwo" size="1">
<option value=" " selected="selected">Please Select State</option>
</select><br />
<input class="red" type="button" name="go" value="Go There"
onclick="window.location.href('http://' + document.myform.opttwo.options[document.myform.opttwo.selectedIndex].value + '/index.php');return false">
</div></form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:11:24+00:00Added an answer on May 31, 2026 at 11:11 pm

    Firebug shows warnings, so many warnings, about what Brendan wrote. It also says pfcClient is not defined – try to fix that. And get rid of all these warnings from php script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a simple VBS script. But when I double-click on this, I get
I have a simple script that does some search and replace. This is basically
I just tested this simple php file upload script. Works in all browsers except
Good Morning, I have a really simple script that works fine on everything but
I have a simple script which I have included here. the select query works
I want the user to click on a button called select. This then selects
After loading a PHP template (using jQuery's load function), this simple script won't make
I have this simple php script <?php echo '<pre>'; // Outputs all the result
I've got this simple Perl script: #! /usr/bin/perl -w use strict; use Data::Dumper; my
I'm trying to get this simple PowerShell script working, but I think something is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.