March 27, 200223 yr <p class="text"><a href="[FMP-linkrecid: layout=CGI, Format=prodlist.htm]" target="_blank"><span class="text">[FMP-field: Project]</span> With this code, clicking on this link in my browser opens the desired file in a new blank window in the browser. Is there any code that can be added that will also specify the new windows size, whether or not it shows the navigation location, scroll bars, navigation buttons (back, forward, stop, home, ect), and the navigation items down the left wide of the browser in Explorer? LR
March 27, 200223 yr I use Java for this. Place this in the head of your page: code: <script language="JavaScript"> <!-- function openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> and then structure your A HREF tag like so: code: <A HREF="#" onClick="openBrWindow('URL of page','Popup','scrollbars=no,width=450,height=600')"> LINK </A>
March 28, 200223 yr Author This works out GREAT. Are there other variations of this portion of code you provided: scrollbars=yes, In other words for controlling other things like whether or not the navigation buttons show (back, forward, reload), the url location shows, or whether or not the window can be resized; resize=yes, location=yes, navigation=yes, LR [ March 27, 2002, 12:11 PM: Message edited by: Larry Ross ]
March 28, 200223 yr Here is pretty much every eventuality. toolbar=yes, location=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, width=x, height=x' HTH
March 28, 200223 yr Not to mention Position. It is good to check on start, that visitor has JavaScript ON and notify him/her about necessity to have JavaScript ON. Then you can use this to your advantage and build pages always forced to Frames, thus disallowing URL modifications and fiddling/hacking with URL.
Create an account or sign in to comment