In article <70********************************@4ax.com>,
lu***@teleport.com shared the illuminating thought...
I am shelling out of an application (a simple VB application). The OS
will pick the browser (most likely IE).
If it were a Windows application that was always IE, you'd have more
choices, but if it's internet where you don't know for sure, then you
have to allow for all browsers.
All I can specify is a web page.
I have control of the server and the application.
If I shell out to a web page then it will be displayed just like any
web page. What I want to do is to display this web page with several
of the window.open properties either enabled or disabled. Therefore I
believe I need to execute a javascript command that will do this.
My tactic was to create a stub page that had some sort of javascript
which will display the page.
The issue is that I want to do a redirect so that the stub page goes
away (I don't want two browser windows open).
Can I specify window parameters with location.href? Can I specify
window parameters in a META REFRESH tag?
No and no.
And a lot of people disable the awful meta refresh. I know I do.
People can also specify that new windows shouldn't be opened and that
you shouldn't take away functionality if they use Mozilla, which I also
do.
You have more options if this is an application that runs on a PC or if
this is intranet (instead of internet).
That's what I need help with.
You can't do this in a normal security environment nor in a cross-
browser fashion. Besides, anything you take away can be easily
reobtained by the user with the right-click menu.
Ideally, you shouldn't do it anyway. It defeats the purpose of
separating design from content, which is the way applications should be
done. Application data / content, HTML, and style - all should be a
separate tier. This was one of the reasons for XML and CSS.
But, many people are responsible for all three tiers, especially on
smaller sites, so the separation has a blurry line.
Theoretically, if your users had IE with a minimal security environment,
you could open a new window and close the current one, but users get a
warning when you do that normally.
If you were using Windows/IE exclusively, you could use WSH/HTA to
control things.
VB has a browser control. If this is an application run by the user on
their computer (.exe), using that would be a better alternative.
----------------------------------------
~kaeli~
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
Kill one man and you are a murderer.
Kill millions and you are a conqueror.
Kill everyone and you are God.
----------------------------------------