michaellunsford Posted May 5, 2006 Share Posted May 5, 2006 I need a popup window with no scrollbars, no toolbar, etc. The code I'm using right now makes firefox display [object Window], and then popup the new window (not good).[code]<a href=\"javascript:window.open('images/cars/bigger_1_.html','carpics','location=0,status=0,scrollbars=1,resizable=1,directories=0,toolbar=0,width=640,height=480');\">note: quotes are escaped due to some bug in this forum[/code]This is clicking on an image in a long list. So modifying the code to <a href="#" onclick="window.open..."> makes the page jump back to the top. and doing the target="_blank" leaves the toolbars, scrollbars, etc. So, how to do this?Is there a way to change the current window's "location=0,scrollbars=1" etc in javascript without having to use window.open?thanks for any help! Quote Link to comment https://forums.phpfreaks.com/topic/9137-javascript-popup-window/ Share on other sites More sharing options...
michaellunsford Posted May 6, 2006 Author Share Posted May 6, 2006 Haha! Fixed it. Redundant link and window.open javascript.[code]<a href="images/cars/bigger_1_.html" target="carpics" onClick=\"javascript:window.open('images/cars/bigger_1_.html','carpics','location=0,status=0,scrollbars=1,resizable=1,directories=0,toolbar=0,width=640,height=480');\">note: quotes are escaped due to some bug in this forum[/code]If there is a better way, don't be shy.Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/9137-javascript-popup-window/#findComment-33874 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.