html popup windows
If you think that this site is helpful, please recommend your friends to visit our site.
For web page popup windows, we are actually talking about two things. One is when you click a link on the webpage, a new window pops up. The other is when you start your web page, a new window pops up. For the latter, we can also divide it into two popup windows. They are the window popped up on top of the origianl window and the window popped up under the original window. The following will tell you how to do it.
How to pop up a window after the link clicked?
You can just add the following code to the <a>-tag:
<A href="http://www.edusoftmax.com/" Target="_blank">www.edusoftmax.com</A>
How to pop up a window on top after a page started?
You need to add the following script between the <HEAD> and </HEAD> tags:
// end -->
And then insert code below into your <BODY> tag:
<BODY bgcolor=blue text=white
How to create popup under window after a page started?
In the following example, you can see that window has the blur() statement attached that will force the new window to the background on most browsers and a statement, window.focus(), insuring it is the one on top.
<title>Popup under sample</title>
This is the main window and will remain on top.