Français English Español Italiano Português
User Login    
 + User Registration
Connexion

Popup


Author : lotsofcode | Lots of Code
Date : 2008-02-27T14:29:59+01:00
Views : 11

The simplest way to create a javascript popup is to create a function like so.



<script language="javascript" type="text/javascript">

<!--

// I have called the popup showPop

function showPop(url)

{

// This is the part that opend the new window, we set the url, name and dimensions of the window

newwindow = window.open(url,'name','height=400,width=550');

}

// -->

</script>


And then add the following to the anchor link you would like to popup.



<a href="#" onclick="return showPop('http://www.google.co.uk')"> see my popup </a>




URL : http://community.xoofoo.org/modules/actus_webmaster/view.article.php/5
Trackback : http://community.xoofoo.org/modules/actus_webmaster/trackback.php/5

The comments are owned by the poster. We aren't responsible for their content.
Poster Thread