Solved

<body onLoad </-- Set these parameters... (See Below) --/>

Posted on 2004-04-27
4
1,373 Views
Last Modified: 2008-01-09
Essentially I'm looking to do something similar to this...

<script type='text/javascript'>

var height = 400                      //Set height
var width = 400                        //Set width
var name = "winname"             //Set window name
var top = 20                             //Set distance from top
var left = 20                             //Set distance from bottom

if(document.location.search=='')  {
  newwin=window.open(document.location + "?newwin=true", name, "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
 self.close()
}

</script>

but instead of initially loading a page, just to have it reloaded without a toolbar, or menubar, or no status bar and etc.  I want the page to load with all of these attributes from the get go.  

As it stands, I put what I want in the page, IE will immediately ask if I want to close the page, since it's requested by the page.  If I say 'no' then nothing happens, and if I say 'yes' then it will close the initial page, either way there is another page that loads.

I'm trying to avoid loading two pages, and I'm also trying to avoid IE even asking me if I want to allow the transaction to happen.

My whole idea is to make a tech cd that has a bunch of tech tools, and I plan on making the front-end web based, but I don't want anyone to manipulate the front page by having the ability to use the menubar or the toolbar or anything.  I plan on making it a fixed size and what they see is what they get.

Can anyone help?

Enigma
0
Comment
Question by:enigmafyv
  • 2
4 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 50 total points
ID: 10936251
Reanme your page from html to hta.
Liek this:  startpage.hta

Thats all.

0
 
LVL 63

Expert Comment

by:Zvonko
ID: 11692611
Please also remove itzkakarot's recommendation because it is a security hack.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get checkbox id of the previous one selected 2 26
Timer on div 5 22
Compute age Html 2 23
REST call Failing 1 7
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question