View Full Version : help popups


minachan
06-08-2003, 11:30 AM
i want to put a popup link on my pg but i dont know how.i also would like to know how you change the size ^^


mina

sebluver
06-08-2003, 12:03 PM
Place this somewhere in the head:

<script type="text/javascript">function pop() {NewWin=window.open('http://yoururl','pop','width=600 height=400,scrollbars=no,scrolling=no,location=no' ); }</script>

Place this in the body:

<a href="javascript:pop()">Click for a popup</a>

Or, for an image link for a popup:

<a href="javascript:pop()"><img src="http://yourimageurl.gif" border="0"></a>

You can change the width, the height, whether or not you want scrollbars/scrolling, etc...

If you're confused, I'd reccommend going to http://www.sassybella.com/you_tutpopups.php