View Full Version : Pop-up questions


sweetinnocence
06-19-2003, 05:03 AM
In pop-ups is there any way you can make it to not be a button but instead just be words. and is there a way to make it positioned on the page of where you want it to go? here is the code I am using now....
<input type="button" Value="Main Page" style="font-family:arial" style="background:#FFFFFF" ONCLICK="window.open('index.htm', 'Sample', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=no,copyhistory= yes,width=500,height=500')">

thanks
-Brittany

Alcy
06-19-2003, 05:13 AM
You use the second code on this (http://www.lissaexplains.com/java4.shtml#window) page.

<script language="javascript">
//<!--
function popup()
{ window.open ("YourURLgoesHere.html", "popup", "width=400, height=400, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
-->
</script>

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

sweetinnocence
06-19-2003, 07:13 PM
I used that one and when I clicked for the pop up well it didn't pop up but I will just use the one I already have right now (button) but I don't know how to center it.

MaGiCSuN
06-19-2003, 07:31 PM
have you changed the 3 words "popup" to something all the same? becuase you have to change them all, or leave t hem all there. When adding 2 pop-ups you have to change popup to something different or something like this "popup2"

also maybe taking out the space between java script may help

Love,
Mirna

amicus
06-19-2003, 07:40 PM
the code alcy posted should've worked. did you make the javascript one word? for some reason the forum always break it up.

also on a side note, remove the quote after the word 'window' :)

sweetinnocence
06-19-2003, 07:44 PM
oh oh ok I'll try all that thanks you guys!!
-Brittany

sweetinnocence
06-20-2003, 04:52 AM
ok I have another question.... when you use pop-ups and on the pop-up that popped up (lol) has a link on it how do you make it to where the link that you click on is used on that same pop-up?

designhazard
06-20-2003, 05:53 AM
just copy and paste the same script on the pop-up page that popup.