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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Forms Control Options?

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey guys,

You know when you create a form in VB how you can disable the close, minimize, and maximize buttons on the window? Does anyone know how to do it with a web form? What I'd like to do is just show a browser, but with no controls (so in essence, the user HAS to respond to the form...kinda like the modal idea in VB)

any thoughts on how I could pull this off?
Thanks,

Jack
 
You can open up a new window keyoski (sp?) like mode by using javascript.


<SCRIPT language=&quot;JavaScript&quot;>
<!--
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, width=&quot;110%&quot;, height=&quot;100%&quot;, menubar=no, toolbar=no, scrollbars=no, resizable=no');
}
</script>




For an example of this script you can go to


you have to hit ALT + F4 to close the window after it gets opened.

I do not know of way to apply this work on an exisiting window just new ones.

Hope this helps


Wayne Sellars

&quot;Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0.&quot;
 
Hey thanks Wayne, that code worked great!
:)

Now to just figure out how to streamline it within my application...
;)

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top