ccm520
05-12-2003, 08:36 PM
im trying to put pop-up windows on my webpage. im using the code from here but i dont want a button just a regular link ex: this would be the link and you click on the underlined part to go to the page. please help! thanx :)
Xiphias
05-12-2003, 09:44 PM
put this into your head tags:
<script language="javascript" type="text/javascript">
//<!--
function NAME()
{ window.open ("YourURLgoesHere.html","NAME","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>
then use this code for your link in the body:
<a href="javascript: NAME()">Click here for popup window"</a>
edit: also remove those stupid spaces my copy and paste command put on the first codes properties and be sure to remove the space between java and script in the second code, I dunno why it put that there ;)