dmk
07-01-2003, 03:04 PM
On my Intranet page, I'm using a JavaScript drop-down menu bar that uses a text file to hold the variables -- the menu items. From one of these drop-downs, I have a link to an Excel file which works, but when that link opens, I need its window to either be maximized, or to fit the dimensions of the user's screen.
This is the code of one of the drop-downs:
Menu2=new Array("Teams","","",5);
Menu2_2=new Array("Corporate","","",8,20,150);
Menu2_2_1=new Array("IRS Fill-in SS-4 form","java script:NewWin=window.open('http://www.irs.gov/pub/irs-fill/fss4.pdf','NWin');window['NewWin'].focus()","",0,20,180);
Menu2_2_2=new Array("Wis Dept Financial Institutions","java script:NewWin=window.open('http://www.wdfi.org','NWin');window['NewWin'].focus()","",0);
Menu2_2_3=new Array("CRIS Search at the DFI","java script:NewWin=window.open('http://www.wdfi.org/corporations/crispix/search.asp','NWin');window['NewWin'].focus()","",0);
Menu2_2_4=new Array("Table of Secretaries of State","java script:NewWin=window.open('http://www.nass.org/sos/sos.html','NWin');window['NewWin'].focus()","",0);
Menu2_2_5=new Array("Wisconsin UCC Forms","java script:NewWin=window.open('http://www.wdfi.org/ucc/forms.htm','NWin');window['NewWin'].focus()","",0);
Menu2_2_6=new Array("National UCC-1 Form","java script:NewWin=window.open('http://www.wa.gov/dol/forms/ucc1.pdf','NWin');window['NewWin'].focus()","",0);
Menu2_2_7=new Array("National UCC Amendment Form","java script:NewWin=window.open('http://www.wa.gov/dol/forms/ucc3.pdf','NWin');window['NewWin'].focus()","",0);
Menu2_2_8=new Array("State Taxation Offices","java script:NewWin=window.open('http://www.taxadmin.org/fta/link/','NWin');window['NewWin'].focus()","",0);
// Menu2_2_9=new Array("Closing Statement","java script:NewWin=window.open('http://dk_intranet/corporate/ClosingStatement.xlt','NWin');window['NewWin'].focus()","",0);
Can the window size be worked into the link? Thanks.
This is the code of one of the drop-downs:
Menu2=new Array("Teams","","",5);
Menu2_2=new Array("Corporate","","",8,20,150);
Menu2_2_1=new Array("IRS Fill-in SS-4 form","java script:NewWin=window.open('http://www.irs.gov/pub/irs-fill/fss4.pdf','NWin');window['NewWin'].focus()","",0,20,180);
Menu2_2_2=new Array("Wis Dept Financial Institutions","java script:NewWin=window.open('http://www.wdfi.org','NWin');window['NewWin'].focus()","",0);
Menu2_2_3=new Array("CRIS Search at the DFI","java script:NewWin=window.open('http://www.wdfi.org/corporations/crispix/search.asp','NWin');window['NewWin'].focus()","",0);
Menu2_2_4=new Array("Table of Secretaries of State","java script:NewWin=window.open('http://www.nass.org/sos/sos.html','NWin');window['NewWin'].focus()","",0);
Menu2_2_5=new Array("Wisconsin UCC Forms","java script:NewWin=window.open('http://www.wdfi.org/ucc/forms.htm','NWin');window['NewWin'].focus()","",0);
Menu2_2_6=new Array("National UCC-1 Form","java script:NewWin=window.open('http://www.wa.gov/dol/forms/ucc1.pdf','NWin');window['NewWin'].focus()","",0);
Menu2_2_7=new Array("National UCC Amendment Form","java script:NewWin=window.open('http://www.wa.gov/dol/forms/ucc3.pdf','NWin');window['NewWin'].focus()","",0);
Menu2_2_8=new Array("State Taxation Offices","java script:NewWin=window.open('http://www.taxadmin.org/fta/link/','NWin');window['NewWin'].focus()","",0);
// Menu2_2_9=new Array("Closing Statement","java script:NewWin=window.open('http://dk_intranet/corporate/ClosingStatement.xlt','NWin');window['NewWin'].focus()","",0);
Can the window size be worked into the link? Thanks.