Page Entry Alerts

G

Guest

I would like an alert to pop open when a user enters one of my web pages. I
created a behavior using pop up message with 'onmouseover' but it seems if
the user doesn't move the mouse in the correct location of the page the alert
will not pop. I would rather the alert pops as soon as the page is accessed.
How do I do this?
 
M

Mark Fitzpatrick

You can, instead, have the function called on the body's OnLoad event. This
should make it popop as the page begins loading.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP- FrontPage
 
T

Thomas A. Rowe

Uses of Windows XP IE6 SP2 or other popup blocker application will not see automatic popups.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
K

Kevin Spencer

It's amazing the trouble people will go to to accomplish relatively simple
tasks (yes, I know, you didn't know - I'm sympathizing) To get a script to
run as soon as the page loads, all you have to do is insert it into the body
of the page. Example:

<html>
<head>...</head>
<body>

....
<script type="text/javascript"><!--
alert("This is your alert message");
// --></script>

....

</body>
</html>

Hope you didn't spend too much time on the problem before you came here!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
M

Murray

Of course nobody will know how extremely clever you are since all modern
browsers will block that sucker.
 
A

Andrew Murray

Does this apply to the javascript "alert" box - I don't mean using an
onload= to open a pop-up browser window.
 
A

Andrew Murray

I thought firewalls etc only would block OnLoad events, not alert('blah blah
blah'); it's not quite the same thing is it?
because you can do an onclick to get that alert box or do it as below, but
that's NOT using the onload in any way. The only way it won't work if JS is
turned off.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top