The Little Guy Posted January 12, 2007 Share Posted January 12, 2007 This code only works in FF, and not IE. Any know how to get it to work in both?what it does is take the text from a field, and puts it into a link in a new windowExample link looks like this:http://tzfiles.com/user_ok.php?user_name=ryan[code]<script type="text/javaScript">function check_user(){var userval=document.getElementById('user').value;var load = window.open('user_ok.php?user_name='+userval,'','scrollbars=yes,menubar=no,height=100,width=200,resizable=no,toolbar=no,location=no,status=no');}</script>[/code]Page its used on ("Check User Availability" link):http://tzfiles.com/join.php Quote Link to comment Share on other sites More sharing options...
nogray Posted January 12, 2007 Share Posted January 12, 2007 Try to use the same id and name for the user_name,[code]...var userval=document.getElementById('user_name').value;...[/code][code]...<td><input type="text" id="user_name" name="user_name" value="">*</td>...[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.