DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Javascript Popup Window

  1. #1
    Join Date
    Jun 2005

    Javascript Popup Window

    Just a quicky,

    I've got this popup window I need to set the attributes for. I've created it through different methods when trying to set these attributes, first through

    <script language="javascript">
    function OpenNewWindow()
    var w ="Popupwindow.aspx")

    on the HTML side of the form - this is called from clicking the button on the form, and also in the click event of the button using

    Response.Write("<script language='JavaScript'>'PopupWindow.aspx');</script>")

    Both methods open the window for me, but if I try to set the additional arguements for them such as page title and/or displaying the menu bar or sizing etc I either get an invalid argument script error or the page just dosnt open.

    To pass the arguments I would be using"popupwindow.aspx","title popup window", "popup window settings")

    anything after the new name page and it throws a wobbler. . . .thought? ideas? suggestions?

  2. #2
    Join Date
    Mar 2005
    The 2nd parameter of '' is target/name of the popup window, e.g. '_self', '_blank', etc., which space is not allowed.

  3. #3
    Join Date
    Jun 2005
    ah ha! many thanks

Similar Threads

  1. Replies: 1
    Last Post: 03-26-2003, 01:11 PM
  2. Popup window - transfer value from...
    By Ramon in forum ASP.NET
    Replies: 5
    Last Post: 02-13-2003, 05:46 PM
  3. Replies: 1
    Last Post: 02-07-2003, 04:17 PM
  4. child window - is it or isn't it?
    By TC in forum VB Classic
    Replies: 8
    Last Post: 09-26-2000, 02:34 AM
  5. child window - is it or isn't it?
    By TC in forum VB Classic
    Replies: 0
    Last Post: 09-25-2000, 09:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center