XxJessicaxX
07-23-2003, 11:59 PM
I'm looking for a text code that when you click it, it pops up to a page, without the menu bar and stuff. I know there's one already on this site, but I don't understand how to work it. I'll put in the code, normally, but when I click it, it doesn't work. Do I have to put a url to another page in it somewhere? I' sorry, I'm just really cofused ^^.
Lemon Squash
07-24-2003, 12:22 AM
http://www.lissaexplains.com/forum//showthread.php?s=&threadid=36903&highlight=pop+up
kittycat
07-24-2003, 12:23 AM
Code in the head tag:
<script language="javascript">
//<!--
function popup()
{ window.open ("YourURLgoesHere.html","popup","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>
The bold parts are the only parts you really need to change. The first is pretty obvious - just the page you want to show up in the popup window - and the next two are the width and height that you want the popup window to be.
Where you want the link to show up you have
<a href="javascript:popup()">Click here for popup window</a>
XxJessicaxX
07-24-2003, 01:15 AM
It didn't work, it just takes me to an error page :(
kittycat
07-24-2003, 01:24 AM
1. make sure that you've linked and uploaded the page properly, that it's in the same directory.
2. take out the space in javascript in the link code, the forum sticks that in.
If you're still having troubles, could you post a link to the page?