two windows?!?! why???

Results 1 to 2 of 2

Thread: two windows?!?! why???

  1. #1
    Join Date
    Dec 1969

    Default two windows?!?! why???

    Hi, i&#039;ve this code on a page, it is suposed to open a new window and it does, not one but TWO windows, one is the correct, but the other opens and as a [OBJECT] message..... why is that???<BR><BR>tkhs in advance<BR><BR>&#060;a href="JavaScript:;%=codigo%&#062 ;","my_new_window","toolbar=no,location=no,directo ries=no,status=no,menubar=no,scrollbars=yes,resiza ble=no,copyhistory=yes,width=400,height=400" target="_new"&#062;?&#060;/a&#062;<BR><BR><BR><BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: two windows?!?! why???

    Look at your code for a sec... You specify a target in the link, which launches a new window, but *before* that, the link is a javascript expression to open a new window with the attributes you specify (resizeable, history, etc etc).<BR><BR>Get rid of target and try:<BR>a) pointing the link to a js function (this is much better than what youre currently doing, cause you can reuse the function and pass arguments, like a URL, to it, insteadl of having a mammoth string that opens the window each time you want to use a link)<BR><BR>b) in your function, use It will automatically create a new window instance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts