Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 650
  • Last Modified:

open popup window

Hi Experts,

I open a new window using the below javascript command:

window.open("http://localhost:3212/WebSite1/Login.aspx","my_new_window","toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, fullscreen=yes")

I need to show the user the status bar, How can I do that?
The above command doesnt do that.

Thank you
0
RamyBouchra
Asked:
RamyBouchra
  • 2
1 Solution
 
trailblazzyr55Commented:
you actually have the correct code for making the status bar appear, however with the fullscreen attribute set to "yes", you will not see the status bar, try setting the fullscreen attribute to "no" and see what I mean...

"status=yes" will allow you to show the status bar, "fullscreen=yes" however hides it because it's taking up the full screen, change to "fullscreen=no"

window.open("http://localhost:3212/WebSite1/Login.aspx","my_new_window","toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, fullscreen=no")
0
 
trailblazzyr55Commented:
for reference here's a helpful link to help you format the popup window...

http://www.pageresource.com/jscript/jwinopen.htm
0
 
rama_krishna580Commented:
Hi,

look at this properties...

it'd be like:
<a href="testing.htm" onClick="window.open(this.href,null,'location=no,menubar=no,toolbar=no');return false;">test</a>

here's the syntax declaration:
Syntax  Description
fullscreen={ yes | no | 1 | 0 }  Specifies whether to display the browser in a full-screen or normal window. Default is no.
Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, you should always provide a button or other visual clue to help the user close the window. ALT+F4 will also close the new window.
 
channelmode={ yes | no | 1 | 0 }  Specifies whether to display the window in theater mode and show the channel band.  
toolbar={ yes | no | 1 | 0 }  Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available.  
location= { yes | no | 1 | 0 }  Specifies whether to display the input field for entering URLs directly into the browser.  
directories = { yes | no | 1 | 0 }  Specifies whether to add directory buttons. Default is no.
status={ yes | no | 1 | 0 }  Specifies whether to add a status bar at the bottom of the window. Default is yes.
menubar={ yes | no | 1 | 0}  Specifies whether to display the menu bar. Default is yes.
scrollbars={ yes | no | 1 | 0}  Specifies whether to display horizontal and vertical scroll bars. Default is yes.
resizable={ yes | no | 1 | 0}  Specifies whether to display resize handles at the corners of the window.  
width=number  Sets the width of the window, in pixels. Minimum value should be 100.
height=number  Specifies the height of the window, in pixels. Minimum value should be 100.
top=number  Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen.
left=number  Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen.

R.K
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now