Popup Window on Button Push

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Popup Window on Button Push

    Can anyone tell me how I can open a new browser window when a button is
    pressed?

    I tried adding an <a href=...> encapsulating the button, but it didnt work.

    Any suggestions?

    --
    _____________________________
    Ron Rodenberg
    Lead Software Engineer
    Razorvision Technology, Inc.
    (214) 207-1688


    Temp Guest

  2. Similar Questions and Discussions

    1. Popup window on a button
      I am sending variables to cgi script which is a mailing list. Currently the results of subscribing to the list (once clicking on a button in my...
    2. toggle states in fc push button component?
      i am using the fc push button component in flash mx, but i would like to be able to on press for the button to stay pressed, until pressed again,...
    3. can a popup window return data to parent window?
      Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user...
    4. Problems with Push Button Event in DataGrid
      ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
    5. How to select a button in a matrix of push button (Cocoa) ?
      The radion button was created with Interface Builder. How to make a default (selected) button in this matrix ?
  3. #2

    Default Re: Popup Window on Button Push

    look into the target tag. try target="_new" or target="_blank"
    "Temp" <tempmail@temp.com> wrote in message
    news:bh34gd$m6j@library1.airnews.net...
    > Can anyone tell me how I can open a new browser window when a button is
    > pressed?
    >
    > I tried adding an <a href=...> encapsulating the button, but it didnt
    work.
    >
    > Any suggestions?
    >
    > --
    > _____________________________
    > Ron Rodenberg
    > Lead Software Engineer
    > Razorvision Technology, Inc.
    > (214) 207-1688
    >
    >

    vMike Guest

  4. #3

    Default Re: Popup Window on Button Push

    Try adding this in your page init:

    btnName.Attributes.Add("onclick", "pop_window();return false;")

    and put your script for it in the html <head>, for example:

    <script language="javascript">
    function pop_window()
    {
    var confirmWin = null;
    confirmWin = window.open('Scanned.aspx', 'WindowName',
    'width=300,height=400,left=200,top=200,toolbar=no, resizable=no,menubar=n
    o');
    }
    </script>

    hope this helps.

    Kathy

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Kathy Burke Guest

  5. #4

    Default Re: Popup Window on Button Push

    in adition to Kathys replay,

    If you'r using ASP:Button add :
    window.event.returnValue = false;
    window.event.cancelBubble = true;

    to prevent postback.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  6. #5

    Default Re: Popup Window on Button Push

    Nat, where does this go exactly?

    window.event.returnValue = false;
    window.event.cancelBubble = true;

    Thanks,

    Kathy

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Kathy Burke Guest

  7. #6

    Default Re: Popup Window on Button Push

    Kathy Hi,

    usually in pop_window function. but i didnt see the "return false;"
    sorry :-( .

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139