PDA

View Full Version : Resolved Form submit opening in new window.



lrickyutah
03-21-2013, 03:12 AM
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.


<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>

letom
03-21-2013, 07:04 PM
Hi @lrickyutah


Please refer the following


<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>

lrickyutah
03-21-2013, 08:03 PM
Thank you so much! That loud noise you heard was the head smack I just gave myself.