August 13, 2011

How To Add JavaScript Popup windows V2 to Blogger

How To Add JavaScript Popup windows V2 to Blogger

1.Login to your Bogger Dashboard and go to Design >> & Page Elements.

2.Click on 'Add a Gadget' on the sidebar.

3.Select 'HTML/Javascript' and add the one of code given below


<script type="text/javascript">
<!--
function myPopup2() {
window.open( "YOUR URL HERE", "myWindow", 
"status = 1, height = 300, width = 300, resizable = 0" )
}
//-->
</script>
</head>
<body>
<form>
<input type="button" onClick="myPopup2()" value="POP2!">
</form>
<p onClick="myPopup2()">Click this</p>

Note: Replace YOUR URL HERE with your pop up windows link

4. Now Click on Save "Html Java Script" and You are done..

No comments:

Post a Comment