Opening IE without menu/buttons

  • Thread starter Thread starter margaret
  • Start date Start date
M

margaret

I need my default page to open up IE (or other browser) in
a stripped-down window, with no menus or buttons except
Close. I know I can do this with Window.Open but is there
a way to do it on my default page?

thanks in advance.
 
Posibilities
1. Changing the HTML code
2. Aspx.vb net code with adding HTML attributes to a server side button
control. (normal page and poppup)

a sample how to use attributes in vb code from a textbox.control

TextBox1.Attributes("onblur") = "javascript:alert('Hello! Focus lost from
text box!!');"

I hope this was what you did ask?

Cor
 
I just want the browser window that opens to have no menus
or back/forward/reset buttons. I can do it with
window.open if I add a dummy page with a button that says
something like "Click to Start" but that's primitive.
 
Hi margareth,

I think this is what you are looking for then
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

I hope this was the right one?

Cor
 
That worked except that I still have two windows: the
initial IE window and the new, buttonless window. Is there
a way to add a statement to close the initial window?
 
Hi Margareth,

I don't think this is what you want, but it I thought that it does exactly
what you ask, therefore tell if it is or not?
\\\
Dim str As String
str = "<script language=javascript>
{window.open('http://www.google.com','_self');}
</script>"
RegisterStartupScript("Startup", str)
///
Cor
 
Hi,

You can use the Window.Close() method using
JavaScript/VBScript language (client-side only).


Regards,
Puneet Taneja
 
But you will get a popup asking if you really want to do that. You
cant programatically close a window if you did not open it without
this occuring. There is a "trick" to doing it, but I cant remember it.
I believe the "trick" will be taken care of in a future release of IE,
and I dont think it works at all on NS. Something about using the
parent object I think, but Im not certain.
 
Back
Top