kaisersoze Posted March 25, 2004 Posted March 25, 2004 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... Quote Note: I think as a programmer not as a human, so use my answer at your will
kaisersoze Posted March 26, 2004 Author Posted March 26, 2004 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. Quote Note: I think as a programmer not as a human, so use my answer at your will
Arch4ngel Posted March 30, 2004 Posted March 30, 2004 (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 March 30, 2004 by Arch4ngel Quote "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
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.