Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open windows help

Status
Not open for further replies.

skkoh

IS-IT--Management
Jul 7, 2002
14
MY
Hi,

I need help on Javascript on window.open, I have a script as below this script can one window at one time. I need
to open more than one. I have try to put '_blank' but it will open to window and one is blank.


sample script:

<SCRIPT>
<!--
function openwindow( parmform ) {
window.open( '', 'test', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes')
parmform.target = &quot;test&quot;
parmform.submit()
}
// -->
</SCRIPT>


Tks/skkoh
 
Hi
The second parameter in your window.open statement ('test') is the name of the window. If you try and open another window with the same name, it won't do it. You will have to specify another name for a second window.

Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
Hi HellTel,

Thank for your reply,

Can you show a example how i can open two window?


Tks/koh
 
Use two open window commands!! ;-)

Code:
function openWin(){
  window.open('test1.asp', 't1', 'height=200,width=200')
  window.open('test2.asp', 't2', 'height=200,width=200')
}
--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top