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? Quote Link to comment Share on other sites More sharing options...
fenway Posted January 3, 2007 Share Posted January 3, 2007 Probably a user preference / security restriction.. Quote Link to comment 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? Quote Link to comment 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.... Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.