[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1297
  • Last Modified:

Dreamweaver - Want to create a pop-up message when somone opens web page

When someone goes to my index.html page I want a pop-up window to appear where I can put a message. I want the index.html to open also and the little pop to be on top.
0
Karl66
Asked:
Karl66
  • 4
  • 3
  • 2
1 Solution
 
emphaticDigitalCommented:
Very easy, since you are using Dreamweaver. Open your index page in Dreamweaver. Then access your 'behaviors' panel by going to Window>Behaviors in the menu bar at the top of the interface. Click the 'plus' sign in the behaviors panel to add a behavior called, 'Open Browser Window'. This will open a dialog box. The requied elements are the URL of the page you want to open, (this needs to exist ahead of time and can be a local page within your website) and a name for the window you're opening (used by javascript to keep track of the open window). If you don't include scrollbars, make sure your width and height allow all of the pages content to show. Good luck.
0
 
Karl66Author Commented:
emphatic -

Close I think. When I set it up as you described with the default of onFocus nothing happens. When I change it to something like onMouseOver this works when I move the mouse the winodw pops up but keeps doing it so quite annoying - any odea how to get it to just come up automatically or is onFocus not working as it should? Thanks!

Karl66
0
 
emphaticDigitalCommented:
you should place the command in an 'onLoad' event attached to the body tag:

<body onLoad="...

My version of Dreamweaver uses the onLoad command by default so you may have to change it manually
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Jason C. LevineNo oneCommented:
Try changing to onLoad and make sure it is applied to the <body> tag
0
 
Jason C. LevineNo oneCommented:
*shakes fist at empaticDigital*

Curse you and your faster typing!  :)
0
 
Karl66Author Commented:
SHould I put that on the primary body tage ..

<onLoad BODY>
... page ...
</BODY>

Or am I off track?
0
 
Karl66Author Commented:
Here is what I think you mean

<BODY>

<Body onLoad="<CENTER onfocus="MM_openBrWindow ('popup.htm','Status','status=yes,width=300,height=300')">"

</BODY>
0
 
Karl66Author Commented:
Got it !!! I hadent set my onFocus to anything so there was nothing to set it off - I sid a select all then set my onFocus and OPenWebPage and wala!
0
 
emphaticDigitalCommented:
That's the way to work through the problem! Glad it's working for you. One quick note, you shouldn't need two body tags, (especially since this behavior is unpredictable in most browsers). Additionally, it's okay to use javascript attributes on the main <body> tag; it opens up a lot of page based functionality. Explore! (<body onload="MM_OpenBrWindow('popup.htm', ...) ..."></body>
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now