frames question

kaisersoze

Centurion
Joined
Aug 27, 2003
Messages
152
it is a dotnet application, I have a parent frame and child frame. I have a button called "open as new window" on parent frame. when user clicks on that button, the child frame from should open in new window.
Can any one help me...
 
bungpeng said:
use Javascript "window.open"
yes, i am using window.open, but what is the url. i mean, i am writting this code in the parent, and i should open frame in new window.
 
you have (like they say) 2 choices

1. HTML
<a href="http://www.microsoft.com" target="_blank">Open in a different window</a>

This one will work and everything will be normal.

2. Javascript

window.open("url", "WindowName", "features")

This one however have a few more option. Here's how work the features.

Features are only a string. Features are separated by ",".

Here's the list :

  • channelmode = { yes | no | 1 | 0 }
Specifies whether to display the window in theater mode and show the channel band. The default is no.
  • directories = { yes | no | 1 | 0 }
Specifies whether to add directory buttons. The default is yes.
  • fullscreen = { yes | no | 1 | 0 }
Specifies whether to display the browser in full-screen mode. The 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 closes the new window. A window in full-screen mode must also be in theater mode (channelmode).

You can get to more information here
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_1.asp


1 = YES

0 = NO
and so on...
good luck !

Eg.:
window.open("toto.htm", "Popup", "location=no,toolbar=no,titlebar=no,fullscreen=yes")
 
Last edited:
Back
Top