-
JavaScript Popup menu
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
-
Code:
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
-
how about this one
Code:
<!--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.
Code:
<FORM>
<INPUT TYPE="button" NAME="Button1" VALUE="Alert Notice" onclick="MsgBox();">
</FORM>
-
or
Code:
<!-- 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
Code:
<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. :)
-
Cool thanks for the code... that is really helpful and has sorted out the problem I was having!!! :)