Click to See Complete Forum and Search --> : JavaScript Popup menu
chrismitchell
Jul 19th, 2001, 03:01 PM
I am after some code for a basic pop up window... I have had a look for one and none of them really work.. I want to click on an image and then open up a new window browser with none of the buttons or menu bar etc... Its for to hold a Flash Game.
Any help would be appreciated! :)
Cheers
Psyrus
Jul 20th, 2001, 01:37 PM
window.open('yourpage.html',menubar='no',status='no',toolbar='no');
In the ONLOAD event of the Flash game page set the width and height for the page.
Chris
scoutt
Jul 20th, 2001, 03:04 PM
how about this one
<!--script LANGUAGE="JavaScript">
function MsgBox() {
Newwindow=window.open("alert.html","","scrollbars=1,rezisable=1,toolbar=0,status=0,
menubar=0,location=0,directories=0,width=500,height=170");
Newwindow.document.close();
}
</script-->
sorry I forgot to add what I used to open it.
<FORM>
<INPUT TYPE="button" NAME="Button1" VALUE="Alert Notice" onclick="MsgBox();">
</FORM>
scoutt
Jul 20th, 2001, 03:10 PM
or
<!-- popUpp script-->
<SCRIPT language="JavaScript">
<!--
function popUp(pPage) {
window.open(pPage,'popWin','resizable=yes,scrollbars=yes,width=580,height=460,toolbar=no');
}
//-->
</SCRIPT>
<!-- end popUpp script-->
and then in your link
<A href="javascript: popUp('big.jpg');"><img src="small.jpg" alt="" border=0></a>
I'm sure you can add an html page in there and it should work. :)
chrismitchell
Jul 21st, 2001, 05:00 AM
Cool thanks for the code... that is really helpful and has sorted out the problem I was having!!! :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.