jaymc Posted January 3, 2007 Share Posted January 3, 2007 I have the following script which generates a popup the full size of the screenWorks fine in IE, but not in firefox. Ive tried a few different scripts but firefox fails all the timeHere is the script[code]<script>function fullwin(){window.open("../index.html","","fullscreen,scrollbars")}</script>[/code]If it cant be achieved using the above method in firefox, what alternitives are their to get the popup to be the full size of the screen? Link to comment https://forums.phpfreaks.com/topic/32637-popup-full-screen/ Share on other sites More sharing options...
fenway Posted January 3, 2007 Share Posted January 3, 2007 Probably a user preference / security restriction.. Link to comment https://forums.phpfreaks.com/topic/32637-popup-full-screen/#findComment-151870 Share on other sites More sharing options...
jaymc Posted January 3, 2007 Author Share Posted January 3, 2007 My firefox install is running off the defaultsAnd I dont have any security software.. so it must be a global firefox security thing..How about pre setting the width and height paramaters with javascript? Link to comment https://forums.phpfreaks.com/topic/32637-popup-full-screen/#findComment-151919 Share on other sites More sharing options...
Jtech Posted January 3, 2007 Share Posted January 3, 2007 try this it will work in the same way .. well should[code]<script>function fullwin(){window.open("../index.html","width=#,height=#","resizable=yes")}</script> [/code]Dont set the width or height ..sense its set to default it should open to the full screen of the clients window.... Link to comment https://forums.phpfreaks.com/topic/32637-popup-full-screen/#findComment-152471 Share on other sites More sharing options...
Jtech Posted January 3, 2007 Share Posted January 3, 2007 Opps sorry just caught on to what u were saying .. this should be betterif this script1 works in firefox then use the script2 below to get around ur problem if sombody is using firefox********script1[code]newWindow = window.open("index.htm","newWin","width=#,height=#")[/code]***********script2[code]if (navigator.appName == "Microsoft Internet Explorer") { function fullwin() { window.open("../index.html","","fullscreen,scrollbars")} else {newWindow = window.open("index.html","newWin","width=#,height=#")}[/code]script 1 will do the exact same as urs just in a different way..it should open a new window which should work in firefox ..hope this works Link to comment https://forums.phpfreaks.com/topic/32637-popup-full-screen/#findComment-152476 Share on other sites More sharing options...
weknowtheworld Posted January 8, 2007 Share Posted January 8, 2007 Why you want a full screen popup instead use location.href to go to the page required. Link to comment https://forums.phpfreaks.com/topic/32637-popup-full-screen/#findComment-155919 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.