/    Sign up×
Community /Pin to ProfileBookmark

how to adjust window size for links

I am placing links to other sites on my website. I am using dreamweaver 8.

When users click on the link I want a new window to open up, but not the full size of the screen. I only want the new window to be about 1/3 the size of the screen so my website is not hidden behind it. How can I do this.

Or, if possible, can I make an inline frame on my page so the users really aren’t taken away from my site to view the content on the linked site. I have been trying to find out how to make an inline frame in dw, but can’t find it in the documentation.

thanks.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@Rossario123Aug 27.2006 — [code=html]
<script type="text/javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
if (window.focus) {newwindow.focus()}
}
</script>

<a href="javascript:poptastic('[I]url to popup'[/I]);">Pop it</a>
[/code]
Copy linkTweet thisAlerts:
@Rossario123Aug 27.2006 — ignore my last post sorry.

[code=html]
<script type="text/javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
if (window.focus) {newwindow.focus()}
}
</script>

<a href="javascript:poptastic('url to popup');">Pop it</a>
[/code]


then put this inside the popup to close it

[code=html]
<a href="javascript:if (newwindow) newwindow.close()">Close</a>
[/code]
×

Success!

Help @tmock5 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.19,
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,
)...