Results 1 to 3 of 3

Thread: Form submit opening in new window.

  1. #1
    Join Date
    Nov 2007
    Posts
    35
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Form submit opening in new window.

    So, I'm using code from gotomeeting, where a user can just type in the meeting number in a form and they will be connected to the meeting. How do I open the meeting, the link, in a new window? Driving me crazy.

    HTML Code:
    <script type="text/javascript">
    <!--
    function gotomeeting() {
    	jUrl = "https://www2.gotomeeting.com/join/";
    	meetID = document.joinMeetingB.MeetingID.value;
    	document.joinMeetingB.action = jUrl + meetID;
    }
    //-->
    </script>
    
    <form action="" method="post" name="joinMeetingB">
    <input type="text" name="MeetingID" size="10" onKeyPress="return gotomeeting();">
    <input type="image" src="images/joinmeeting.png" border="0" onClick="return gotomeeting();">
    </form>
    <script language="JavaScript">
    <!--
    document.joinMeetingB.MeetingID.focus();
    //-->
    </script>
    Last edited by lrickyutah; 03-21-2013 at 08:03 PM. Reason: resolved

  2. #2
    Join Date
    Jul 2012
    Posts
    197
    Thanks
    55
    Thanked 3 Times in 3 Posts

    Default

    Hi @lrickyutah


    Please refer the following
    Code:
    <script type="text/javascript">
    <!--
    function gotomeeting() {
    	jUrl = "https://www2.gotomeeting.com/join/";
    	meetID = document.joinMeetingB.MeetingID.value;
    	document.joinMeetingB.action = jUrl + meetID;
    }
    //-->
    </script>
    
    <form action="" method="post" name="joinMeetingB" target="_blank">
    <input type="text" name="MeetingID" size="10" onKeyPress="return gotomeeting();">
    <input type="submit" border="0" onClick="return gotomeeting();" >
    </form>
    <script language="JavaScript">
    <!--
    document.joinMeetingB.MeetingID.focus();
    //-->
    </script>

  3. The Following User Says Thank You to letom For This Useful Post:

    lrickyutah (03-21-2013)

  4. #3
    Join Date
    Nov 2007
    Posts
    35
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much! That loud noise you heard was the head smack I just gave myself.

Similar Threads

  1. Resolved Parent form submit from modal window
    By perl_geek in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 11-18-2011, 11:22 AM
  2. Opening a new window from a form submit
    By alip73 in forum JavaScript
    Replies: 4
    Last Post: 06-26-2008, 02:28 PM
  3. Replies: 2
    Last Post: 01-10-2008, 09:46 PM
  4. Form action Mailto need to open new page on submit and submit email
    By lstammer in forum Looking for such a script or service
    Replies: 0
    Last Post: 12-06-2007, 04:41 PM
  5. Submit button opening in new window.
    By pilgrimspursuit in forum HTML
    Replies: 4
    Last Post: 05-31-2006, 05:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •