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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.