Reaper0167 Posted February 13, 2010 Share Posted February 13, 2010 I can't seem to get the scrollbar to appear on my new window. Also, my height and width is not being set. I am not getting any errors, but it seems to not be working. Anyone? <?php echo "<a href=\"modify.php?mod_s={$row['id']}\" onClick=\"window.open('modify.php?mod_s={$row['id']}','Modify','width=800,scrollbars=yes,height=800');return false\">"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/191978-resizing-a-window-with-windowopen/ Share on other sites More sharing options...
Reaper0167 Posted February 13, 2010 Author Share Posted February 13, 2010 <?php echo "<a href=\"modify.php?mod_s={$row['id']}\" onClick=\"window.open('modify.php?mod_s={$row['id']}','Modify','width=800,scrollbars=yes,height=800');return false\"></a>"; ?> Sorry forgot to post the </a> in my first post. I had it in my code but didn't put it here for you to see. It's all here now. Still same problem. Quote Link to comment https://forums.phpfreaks.com/topic/191978-resizing-a-window-with-windowopen/#findComment-1011886 Share on other sites More sharing options...
harristweed Posted February 13, 2010 Share Posted February 13, 2010 Are you sure the content of "modify.php" is sufficient to need scroll bars? Quote Link to comment https://forums.phpfreaks.com/topic/191978-resizing-a-window-with-windowopen/#findComment-1011889 Share on other sites More sharing options...
teamatomic Posted February 13, 2010 Share Posted February 13, 2010 Nothing wrong with the onclick. The width/height are OK and should work. As to the scroll bar, you will only see it if there is overflow. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/191978-resizing-a-window-with-windowopen/#findComment-1011891 Share on other sites More sharing options...
Reaper0167 Posted February 13, 2010 Author Share Posted February 13, 2010 Hey, thanks for the quick reply. I wil go give it another shot. Quote Link to comment https://forums.phpfreaks.com/topic/191978-resizing-a-window-with-windowopen/#findComment-1011892 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.