Click to See Complete Forum and Search --> : Still need help


PinkxXxPenguin
04-25-2003, 12:06 PM
I'm still having problems w/ the pop up script.

Correct me if I'm wrong but I got the impression that this goes in the <head> of the page that you want to pop up, right?

<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>

What part of that do I need to change to my own info?

& this is the link to it, right?

<a href="javascript: popup()"><img src="image URL here" border=0 width="415" height="280"
alt="Enter"></a>

anything (other that the "image URL here" part) that I need to change in that?

pyro
04-25-2003, 12:31 PM
Try doing it like this... You need to change the item in bold

<a href="yourpage.htm" onClick="window.open(this. href,'pagename','width=300,height=400,left=0,top=0'); return false;">Open popup</a>

NOTE: The above should all be on one line.