/    Sign up×
Community /Pin to ProfileBookmark

Restricted display of target website

My JS popup script works, but when the link on the popup itself is clicked, the target webpage opens with the same size as the popup instead of its normal full size.

Here’s the popup-caller JS script I’m using:

<SCRIPT language=”JavaScript”>
<!–Start Hide
window.open(‘http://ampheek.com/gendet/popcard.htm’,’default_window’,’width=750, height=120, top=150, left=200, resizable’);
// End Hide–>
</SCRIPT>

And here’s the full HTML code on the popup itself:

<HTML>
<HEAD>
<TITLE>CALLED BY POPTEST</TITLE>
</HEAD>
<BODY BGCOLOR=”#1a84c4″>
<P>
<A href=”http://www.babyfacecards.com/?kbid=1130″><IMG SRC=”http://ampheek.com/gendet/babycard.gif
WIDTH=”728″ HEIGHT=”90″ BORDER=”0″ ALIGN=”Middle”></A>
</BODY></HTML>

I appreciate any forthcoming help, particularly if it’s presented so a JavaScript idiot like me can understand it

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@scragarMay 07.2005 — that's done by default, there are a few solutions:

&lt;a href="http://www.babyfacecards.com/?kbid=1130"
onclick="var i=window.open('','','width='+windw.width+', height='+window.height+'top=0, left=0'); i.close();"
<i>&gt;</i>&lt;img src="http://ampheek.com/gendet/babycard.gif"
width=728 height=90 border=0 aligh=Middle&gt;&lt;/a&gt;
×

Success!

Help @porquat spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...