laurabeth
03-09-2003, 06:22 PM
Help!!
Kay, when you wanna make a link that opens in a pop up window, it says to use this code :
<a href="javascript:popup()">Click here for popup window"</a>
right? So where do I put the link of the page I want to open in the window?
*confused*
<script language="javascript">
//<!--
function popup()
{ window.open ("PAGE.HTML", "popup", "width=400, height=400, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
-->
</script>
http://www.lissaexplains.com/java4.shtml#window
laurabeth
03-09-2003, 07:21 PM
Thanks lots!! It works now!!
laurabeth
03-09-2003, 07:24 PM
Okay...so making that a text link... *confused*
If I want the link to say...STUFF, where would I write that so you click on the word stuff and the new window pops up?
Sry for all the questions...I'm not very good at all this websiting stuff.
frederick
03-09-2003, 09:18 PM
where it says "click here for pop up window" in the first code you have.... erase those words and type "STUFF" or whatever you want.
laurabeth
03-09-2003, 10:29 PM
oh man, do i ever feel stupid....
i still cant get it to work!!
grrr....
hmm...if anyone wants to help me figure out this problem
laura_stephens_@ hotmail.com
or just hit me back on the boards here. do i need to post you the codes? cuz its rather long...
frederick
03-09-2003, 10:59 PM
pay attention to the part at the end that is this color... ok?
ok, i took this from another of my responses, to another thread:
be sure that the bold parts are different for each and every pop up window you want.
<script language="javascript">
//<!--
function whatever1 ()
{ window.open ("http://your address.html","popup01 "," width=200,height=200,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0
,titlebar=1,toolbar=0") }
-->
</script>
<script language="javascript">
//<!--
function something-else2 ()
{ window.open ("http://your address.html","popup02 "," width=200,height=200,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0
,titlebar=1,toolbar=0") }
-->
</script>
understand?
and also remember to have the words where i wrote "whatever1" and "something-else2" in the other code that goes in the body. ok?
<a href="java script:whatever1 ()">STUFF</a>
<a href="java script:something-else2 ()">something else you want like "stuff"</a>
laurabeth
03-09-2003, 11:15 PM
thanks...:) it works now!!
frederick
03-09-2003, 11:18 PM
cool, i'm only trying to help, so i'm glad i can. 'welcome.