PDA

View Full Version : Javascript popup question...


loydthefarmer
04-06-2001, 07:32 AM
So heres the code i have:
<script languge="JavaScript">
<!--
function windowSize(){
if (navigator.appName == "Netscape") {
window.innerWidth = 544;
window.innerHeight = 100;
}
if (navigator.appName == "Microsoft Internet Explorer") {
window.resizeTo(544,100);
}
}
-->

But how do i make a popup window that has no button bar at the top?? 'cause in IE the whole window including the button bar is the size that i set. It works fine in netscape (i still would like to get rid of the bar in netcape too)

thanks

Jesse
04-07-2001, 06:10 AM
See our tutorial on popup windows... you can generate button free ones with the generator:

http://www.actionscripts.org/tutorials/beginner/spawn_browser/index.shtml

Then (with my basic knowledge of Javascript) I'm assuming you just replace the word 'window' in your code with the 'name' you enterred into the name box in the generator.

Cheers

Jesse

edeveloper
04-07-2001, 06:14 AM
Hey Jesse,
I'd like to add that you can also try my popUp Window Creator at http://www.aspalliance.com/bellis under the flash tab or if you are on a Mac... well... you'll see it. This version can also generate the code for "full screen".
good luck