Labels

Sunday, February 10, 2013

How to : Popup window with java

Sometimes you will create popup ads or a usefull message for your site. when any user click on a links a new window opens and displays a page.

Creating a popup :
To create a popup you'll need the following script:








Then, you link to it by:






Full Code :
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>howto-bd.blogspot.com</title>

<!-- Java Script For PopUp Start Code-->
<script type="text/javascript" language="javascript">
    function OpenPopup (c) {
    window.open(c,
    'window',
    'width=800,height=800,scrollbars=yes,status=yes')
;
    }
</script>



<!-- Java Script For PopUp End Code--> 
</head> 

<body>
<a href="http://allnewspaper.info" onclick="OpenPopup(This.href); return fales">
           Click Here to See Popup
</a>
</body>
</html>
-----------------------------------------------------------------------------------------------------------------------
Search Keywords :
pop ups, pop up screen, pop up campers, what are pop ups