/    Sign up×
Community /Pin to ProfileBookmark

Opening a new window

Hello,

I am trying to create a popup window in javascript. The thing i am trying to do is to open a popup whose content is the same as one i have stored in one of my variables, instead of a predefined file. For eg, if a variable A has value “<html><body>Hello world!</body></html>”, i want the new popup’s content to be the same. Can anyone provide with a solution and if possible an example?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoFeb 21.2007 — Try your HW first and then we will help you . . . since this is one of the most basic things to do . . .
×

Success!

Help @greatstar 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 6.1,
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,
)...