/    Sign up×
Community /Pin to ProfileBookmark

Pp up welcome window?

Hi,

Apololgies first of all as I have previously posted this in the ‘Java’ forum by mistake.

I am looking for the javascript for a decent pop up window as a ‘welcome’ when someone opens my index page. I don’t wany anything too in-your-face.

Does anyone know where I can find a script, or can someone provide me with this? I do not do javascript myself but I know how to past the relevant script into my html pages.

Thanks

Ray

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@VladdyMay 01.2005 — The best welcome screen is a home page with easily accessible information.

Any pop-up window is an "in-you-face" annoyance and the best thing you can do is stop wasting your time trying to make one.
Copy linkTweet thisAlerts:
@tomvayneMay 01.2005 — no it is pointless to do because alot of ppl have a pop up blocker and will not see it any way.

but because you asked ,

you will ened a function that opens a window with your welcome html document,

sized to a size that is correct.

and call the function from the onload in the body.

simpe enough i think.even though its a bit pointless .just thought its nice to help .ha =)
Copy linkTweet thisAlerts:
@smokerauthorMay 01.2005 — Thanks guys; I'll take your advice and won't bother.

Cheers.

Ray
Copy linkTweet thisAlerts:
@StevosMay 01.2005 — If you want to do it, do try this:

[code=html]<script type="text/javascript">

<!--

document.onload=newWindow()

function newWindow() { welcomeWindow = window.open("YOUR_PAGE_HERE", "welcome", "width=330,height=250") }

// -->

</script>[/code]

Just cut and paste that in it's fullness into your document. Just one thing though, replace "YOUR_PAGE_HERE" with the filename of the file you want to have appear in the new window. Like the others said though, it isn't the best idea.
×

Success!

Help @smoker 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.16,
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,
)...