Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a webpage that will not display a toolbar, menubar, etc. 1

Status
Not open for further replies.

garymgordon

Programmer
Apr 5, 2000
307
US
I am trying to figure out how to create a webpage (index page of a website - for example) that when it opens up ... would not display toolbar, menubar or address bar, etc. The page will not be opening via an <a href=...> - where I could use Javascript to open the window and then control what opens in that window. I want to know if there is a way, from within the html code (or javascript within the html code) to have the webpage open WITHOUT these items.

I am trying to create a &quot;dashboard&quot; for users at a company, so when they start WINDOWS up ... it will automatically launch a webpage (that will not have the look of Internet Explorer) .. yet be in the format of an HTML page, etc.

So, does anyone know how to help me with this?

Your thoughts and advice would be appreciated.

Thanks,
Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
 
Code:
window.open(&quot;file.html&quot;,&quot;WinName&quot; ,&quot;top=xxx,left=xxx,width=xxx,height=xxx,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=yes,directories=no,toolbar=no&quot;);


Hope it works, did for me! =) My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
801119,

>>window.open(&quot;file.html&quot;,&quot;WinName&quot; ,&quot;top=xxx,left=xxx,width=xxx,height=xxx,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=yes,directories=no,toolbar=no&quot;);<<

I like it, but how can you call the above code directly from the IE address input bar? I would like to call a URL immediately in a user-defined window, not called from a <a href=...> or a submit button with onclick() code.

Many thanks,
Alan
 
So you type in say...


now index.html looks like this.
Code:
<html>
<head>
<script type=&quot;text/javascript&quot; language=&quot;javascript&quot;>
function bye() {
  self.opener=this;
  self.close();
}

function load_and_close() {
  window.open(&quot;file.html&quot;, &quot;Winname&quot;..... etc. as [b]aharrisreid[/b] told you);
  bye();
}
</script>
</head>
<body onload=&quot;load_and_close()&quot;></body>
</html>
 
Alan,
You could create an html page that onLoad of the body fires the JavaScript function.

Something like this...
popupWindow() {
// my window stuff
window.open
}
<body onLoad=&quot;popupWindow();&quot;>

Hope this leads in your in the right direction,
Mickey
 
Hi skiflyer and others,

As you wrote in this function:

Code:
function bye() {
  self.opener=this;
  self.close();
  }

Would self.close() work without that Confirmation
message? And if not, how to avoid it?

Thanx

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top