Saturday, August 27, 2011

A popup window when we click a link on website

Facebook like popup box .In this post i am writing about simple pop up box widget which works on javascript and can be used to display internal as well as external content This widget is useful to show some showcase or short content.

To add this to blogger follow these step:
Go to Blogger Dashboard> Design> edit HTML
Add this code below closing </head> tag

<script language='JavaScript'>
function popUp(URL) {
day = new Date();
id = day.getTime();
eval(&quot;page&quot; + id + &quot; =, &#39;&quot; + id + &quot;&#39;, &#39;toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=400,height=400,left = 440,top = 200&#39;);&quot;);
// End

Then click Add a Gadget then click HTML/Java Script then add this code to it. 

<a href="javascript:popUp('')">Open the Popup Window</a>

Here u get this a popup window in your own blog.....
Share your knowledge


Click to Add a New Comment

Post a Comment

Related Posts Plugin for WordPress, Blogger...