| Code: |
<html> <title>TITLE</title> <head> <script> var theURL = 'popup.html'; var width = 300; var height = 400; function popWindow() { newWindow = window.open(theURL,'newWindow','toolbar=no, (the space does not belong here, it just needs to be because of the 100 character limit, and also the space after this) menubar=no,resizable=no,scrollbars=no,status=no,location=no,width='+width+',height='+height); } </script> </head> <body onload="popWindow()"> </body> </html> |
Where it says "var theURL" put the URL of what you want to pop-up, then change the height and width according to how big the pop-up is.
And, remember to remove the "(the space does not belong here, it just needs to be because of the 100 character limit, and also the space after this)" and the two spaces.