www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Rate Thread Display Modes
      #1  
    Old 09-21-2004, 10:50 AM
    jinkevin jinkevin is offline
    Registered User
     
    Join Date: Sep 2004
    Posts: 2
    Lightbulb Open a new window

    I want to open the web site in a new window upon changing the selections.

    Below is the code:

    <HTML>
    <BODY>
    <form action="url" name="language" onsubmit="document.location.href=document.language.url[
    document.language.url.selectedIndex].value">
    <select style="font-family:Arial;font-size:8pt;" name="url" size="1" onchange="document.location.href=document.language.url[document.language.url.selectedIndex].value">
    <option value="">Select a site</option>
    <option value="http://www.msn.com">MSN
    <option value="http://www.yahoo.com">Yahoo</option>
    <option value="http://www.cnn.com">CNN</option>
    </select>
    </form>
    </BODY>
    </HTML>
    Reply With Quote
      #2  
    Old 09-21-2004, 12:20 PM
    Phil Karras Phil Karras is offline
    Registered User
     
    Join Date: Feb 2003
    Location: Mt Airy MD
    Posts: 379
    You need to use "window.open(url, 'name')"

    Code:
    Change:
    onsubmit="document.location.href
    to:
    onsubmit="window.open(YourNewURLhere, 'temp')....
    __________________
    Phil Karras
    Circle Software Consulting
    http://cs.yrex.com/
    Reply With Quote
      #3  
    Old 09-21-2004, 02:14 PM
    jinkevin jinkevin is offline
    Registered User
     
    Join Date: Sep 2004
    Posts: 2
    It worked, thanks, Phil

    thank you for your help.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:07 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.