Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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...

Note: I think as a programmer not as a human, so use my answer at your will
Posted
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.

Note: I think as a programmer not as a human, so use my answer at your will
Posted (edited)

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")

Edited by Arch4ngel

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...