Forum Moderators: open

Message Too Old, No Replies

popup question revisited

in which our antihero is still in a hopeless conundrum

         

backinblack

6:00 pm on Nov 8, 2003 (gmt 0)

10+ Year Member



ok. here it is. i have a popup that appears when you go to our website. on that popup i put a hyperlink to click on that will take you to amazon.com to order our cd. the problem is when you click on it the link (amazon.com) shows up on the popup. but i want it to show up on our main page (main.htm). now i've got the code which is something like href.window.opener="main.htm" or something like that. but i need the whole javascript. i only know html but i think all i need is that function script in between th<head></head> tags. if someone could just write me out the exact script i need that would be cool. with all the bells and whisles like { } those things. if you want to know exactly what i mean, go to our website www.dogdaysrock.com. warning: there is some language and stuff there that might be offensive to some. it's not x-rated, it's just a rock band site. but i just thought i should say that.
thanks

RonPK

9:11 pm on Nov 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<script type="text/javascript">
var o = window.opener;
function goTo(url) {
o.location = url;
return false;
}
</script>

<a href="#" onClick="goTo('ht*p://www.somesite.tld')">other site</a>

You'd better remove that URL in your posting, if you still can. It's against this site's TOS.