-
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 = window.open("Popupwindow.aspx")
return(w);
}
</script>
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'>window.open('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
window.open("popupwindow.aspx","title popup window", "popup window settings")
anything after the new name page and it throws a wobbler. . . .thought? ideas? suggestions?
-
The 2nd parameter of 'window.open' is target/name of the popup window, e.g. '_self', '_blank', etc., which space is not allowed.
-
Similar Threads
-
Replies: 1
Last Post: 03-26-2003, 01:11 PM
-
By Ramon in forum ASP.NET
Replies: 5
Last Post: 02-13-2003, 05:46 PM
-
By Ramon in forum ASP.NET
Replies: 1
Last Post: 02-07-2003, 04:17 PM
-
By TC in forum VB Classic
Replies: 8
Last Post: 09-26-2000, 02:34 AM
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|