Jump to content

Popup full screen


jaymc

Recommended Posts

I have the following script which generates a popup the full size of the screen

Works fine in IE, but not in firefox. Ive tried a few different scripts but firefox fails all the time

Here 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

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

Opps sorry just caught on to what u were saying .. this should be better


if 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.