Click here to Skip to main content
13,148,211 members (48,618 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hi,

I want to open a page as popup window.
it is working but it also show the browser that is mozilla firefox............with minimize,maximize,close buttons.

i don't want to show those.

i have to show only my popup page only

this is the code i wrote it

please check it and give solutions to my problem



 <script type="text/javascript">
function basicPopup() 
{
    popupWindow = window.open("empchoosefoldertosavepopup.aspx", 'popUpWindow', 'height=300,width=600,left=100,top=30,resizable=No,scrollbars=No,toolbar=no,menubar=no,location=no,directories=no, status=No');
}
</script>



<asp:Button ID="Button2" runat="server" Text="Save to Folder" BackColor="#990000"Font-Bold="True" ForeColor="White"  OnClientClick="basicPopup();return false;" 
                               />
Posted 2-Nov-11 23:06pm
Updated 2-Nov-11 23:07pm
member6016.1K
v2
Comments
Member 8680138 15-May-12 6:24am
   
I used above source its not working in first click but from second click popup is coming wt i have to do in first click
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi

Why are you aasigning window.open to a variable and where is that variable declared. If you want to get any return value or show the window as a modal dialogue please use the following code
var strReturn = window.showModalDialog('URL Name', null,
'status:no;dialogWidth:250px;dialogHeight:300px;dialogHide:true;help:no;scroll:yes');

Hope this helps.

Thanks & Regards
Sriman
  Permalink  
v2
Comments
Member 7932936 3-Nov-11 5:31am
   
i used this but it is not working.even it shows mozilla firefox browser and close button
hxu1989 20-Jul-12 11:33am
   
how can I open a popup window and pass some value to the Popup window? Please help.

Thanks!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

it is better to use window.Modalshow dialogue for your requirement.
as:
var popupStyle = "dialogheight=300px;dialogwidth=450px;dialogleft:200px;dialogtop:200px;status:no;help:no;";
 var var1 = window.showModalDialog(url,this, '', popupStyle);
  Permalink  
v2
Comments
Member 10567472 27-Feb-15 4:52am
   
i
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 7

Use pop up Modal instead of pop up window.
  Permalink  
Comments
Member 12857358 28-Nov-16 6:51am
   
Hello everyone i am showing a webpage using Iframe i am also passing ID and Article from my gridview but now i want to show this webpage using POPUP window. I am able to show a popup window using above mentioned code but not able to pass ID and Article.How to do that. Please Help. Here is my code

Iframe1.Attributes.Add("src", "Drawing2.aspx?ID=" + grdrow.Cells[1].Text + "&Article=" + grdrow.Cells[2].Text + "&testdrawing= kkk");

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02 | 2.8.170924.2 | Last Updated 3 Mar 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100