Pop-up window on the home page

  • Thread starter Thread starter Culbert
  • Start date Start date
C

Culbert

I have a small intranet site that we use here, but I'd
like to use a popup window for new news items or updates,
things like that. I know how to make a page load in a new
window, but how do i get a popup to automatically open
when someone accesses the site's homepage?
 
-----Original Message-----
I have a small intranet site that we use here, but I'd
like to use a popup window for new news items or updates,
things like that. I know how to make a page load in a
new window, but how do i get a popup to automatically
open when someone accesses the site's homepage?

<body onload="window.open('newsitems.htm','_blank')">

You realize, I presume, that if you do this, everyone who
hates pop-up windows will hate you.

And everyone hates pop-up windows.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Oh yes. I hate them too, but for the purpose I'm looking
for, popups will work perfectly. We have such a non-
computer saavy group here that almost no one knows what a
popup is.
 
But, once they find out, they will hate them too. :>)

Why not at least give them a link to click to pop up the window? I've kinds
gotten so I just close pop-ups I didn't initiate without even looking at
them.

And that doesn't happen very often since I switched from IE to Mozilla.

Bob Lehmann
 
So, is there a way to do it in FP?
-----Original Message-----
But, once they find out, they will hate them too. :>)

Why not at least give them a link to click to pop up the window? I've kinds
gotten so I just close pop-ups I didn't initiate without even looking at
them.

And that doesn't happen very often since I switched from IE to Mozilla.

Bob Lehmann

<script type="text/javascript">WZXyso(1," WZXy
 
Download the free FP addin "Spawn" from www.jimcoaddins.com

--
-----
Tom Pepper Willett
Microsoft MVP - FrontPage
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/
----
| So, is there a way to do it in FP?
| >-----Original Message-----
| >But, once they find out, they will hate them too. :>)
| >
| >Why not at least give them a link to click to pop up the
| window? I've kinds
| >gotten so I just close pop-ups I didn't initiate without
| even looking at
| >them.
| >
| >And that doesn't happen very often since I switched from
| IE to Mozilla.
| >
| >Bob Lehmann
| >
| message
| >| >> Oh yes. I hate them too, but for the purpose I'm
| looking
| >> for, popups will work perfectly. We have such a non-
| >> computer saavy group here that almost no one knows what
| a
| >> popup is.
| >>
| >> >-----Original Message-----
| >> >>-----Original Message-----
| >> >>I have a small intranet site that we use here, but I'd
| >> >>like to use a popup window for new news items or
| >> updates,
| >> >>things like that. I know how to make a page load in a
| >> >>new window, but how do i get a popup to automatically
| >> >>open when someone accesses the site's homepage?
| >> >
| >> ><body>
|
| <script type="text/javascript">WZXyso(1," WZXy
| ('newsitems.htm','_blank')");</script>
|
|
| >> >
| >> >You realize, I presume, that if you do this, everyone
| who
| >> >hates pop-up windows will hate you.
| >> >
| >> >And everyone hates pop-up windows.
| >> >
| >> >Jim Buyens
| >> >Microsoft FrontPage MVP
| >> >http://www.interlacken.com
| >> >Author of:
| >> >*----------------------------------------------------
| >> >|\---------------------------------------------------
| >> >|| Microsoft Office FrontPage 2003 Inside Out
| >> >||---------------------------------------------------
| >> >|| Web Database Development Step by Step .NET Edition
| >> >|| Microsoft FrontPage Version 2002 Inside Out
| >> >|| Faster Smarter Beginning Programming
| >> >|| (All from Microsoft Press)
| >> >|/---------------------------------------------------
| >> >*----------------------------------------------------
| >> >
| >> >.
| >> >
| >
| >
| >.
| >
 
Culbert said:
So, is there a way to do it in FP?

Sorry, I should have better directions in my previous post.

In FP2002 and earlier, switch to HTML view, find the <body> tag, and
add an onload= attribute as shown below:

<body onload="window.open('newsitems.htm','_blank')">

In FP2003:

1. Select the <body> tag in the Quick Tag Selector.
2. Display the Behaviors task pane.
3. In the Behaviors task pane, Click Insert and then choose
Open Browser Window.
4. When the Open Browser Window dialog box appears, enter the
name of your popup page in the Go To URL box, and then click
OK.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

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

Back
Top