/    Sign up×
Community /Pin to ProfileBookmark

window.open 2 questions :

1)
how from a javascript tag in the html i open another new window?
(not the same as the current being loaded)
2)how do i make the window scrollable?
thnaks in advance
peleg

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriJun 06.2004 — <a href="window.open('', 'page.htm', 'width=400,height=400,scrolling=yes');">Link Text</a>
Copy linkTweet thisAlerts:
@David_HarrisonJun 06.2004 — You shouldn't use the href for JavaScript, here's a more accessible way:&lt;a href="page.html" onclick="window.open(this.href, 'newwin', 'width=400,height=400,scrolling=yes');return false;"&gt;Link Text&lt;/a&gt;The link will still work normally for those without JavaScript enabled.
Copy linkTweet thisAlerts:
@96turnerriJun 06.2004 — argh thats true point taken, ?
Copy linkTweet thisAlerts:
@pelegk1authorJun 07.2004 — is to open a window for

<javascript>

</javascript>

and not from a link in a page!
Copy linkTweet thisAlerts:
@96turnerriJun 07.2004 — yes and the code you got is javascript, try opening it in a browser that doesnt have javascript/enabled

Rich
×

Success!

Help @pelegk1 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...