pop up windows on user command

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Moffitt

    pop up windows on user command

    We have an app in which we want to enable our users to open numerous
    documents in new browser windows.

    I got the new window open thing down but each time I open a new document it
    opens it in the same popup window. I want to be able to select new documents
    and open those selected documents one at a time in a new browser window as
    the custormer selects a new document to open.

    So how do I do that?
  • rf

    #2
    Re: pop up windows on user command


    "Paul Moffitt" <pmoffitt@houst on.rr.com> wrote in message
    news:c4e507bc.0 309181305.55040 0d8@posting.goo gle.com...[color=blue]
    > We have an app in which we want to enable our users to open numerous
    > documents in new browser windows.
    >
    > I got the new window open thing down but each time I open a new document[/color]
    it[color=blue]
    > opens it in the same popup window. I want to be able to select new[/color]
    documents[color=blue]
    > and open those selected documents one at a time in a new browser window as
    > the custormer selects a new document to open.
    >
    > So how do I do that?[/color]

    target="_blank"

    Cheers
    Richard.


    Comment

    • Paul Moffitt

      #3
      Re: pop up windows on user command

      how would I place target="_blank" in this script? I am triggering it
      from an onclick event on an input button not a link

      function openTxt() {
      var subWindow

      subWindow = window.open("he lp/fieldData.asp?t xtData=" + ctrValue,
      "sub", "toolbar=0,loca tion=0,status=0 ,menubar=0,scro llbars=1,resiza ble
      =1, width=650, height=340, left=52px, top=100px")

      if(!subWindow.o pener) {
      subWindow.opene r = window
      }
      subWindow.focus ()
      }

      Comment

      • Lasse Reichstein Nielsen

        #4
        Re: pop up windows on user command

        pmoffitt@housto n.rr.com (Paul Moffitt) writes:
        [color=blue]
        > how would I place target="_blank" in this script? I am triggering it
        > from an onclick event on an input button not a link[/color]

        Change "sub" to "_blank".
        [color=blue]
        > subWindow = window.open("he lp/fieldData.asp?t xtData=" + ctrValue,
        > "sub", "toolbar=0,loca tion=0,status=0 ,menubar=0,scro llbars=1,resiza ble
        > =1, width=650, height=340, left=52px, top=100px")[/color]

        You should not have spaces in the window configuration string. It makes
        some browsers fail to open the window.

        /L
        --
        Lasse Reichstein Nielsen - lrn@hotpop.com
        Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
        'Faith without judgement merely degrades the spirit divine.'

        Comment

        Working...