/    Sign up×
Community /Pin to ProfileBookmark

pop up window

i hope what am asking for is possible.

i will like to create a pop up window onload of the window but i dont want to specific a file in the javascript code i.e window.open(”) and be able to use the document.write method dynamically on the pop up window to create an hyperlink

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryNov 07.2003 — You shouldn't really be using popups, but here goes...

<i>
</i>function myPopup(){
w = window.open('about:blank');
w.document.write('Some html');
w.document.write('&lt;a href="http://www.example.com"&gt;A hyperlink&lt;/a&gt;');
}

&lt;body onload="myPopup()"&gt;

Adam
Copy linkTweet thisAlerts:
@96turnerriNov 07.2003 — you want an array that randomly picks a hyperlink out of the ones you have programed into the array?
Copy linkTweet thisAlerts:
@chuxsauthorNov 11.2003 — Thanxs Adam

i just imlpemented the code and its working well
×

Success!

Help @chuxs 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.18,
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,
)...