|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Javascript
I have a Page1 that "onload" calls a function which opens a smaller Page2. I then want the "onload" of Page2, to call a function that redirects Page1 to another location(url) in the background, all the while keeping Page2 open and in the foreground.
What I am trying to accomplish is a search engine, that when you enter a topic, opens a smaller-browser window (pop-up) with links to the most popular matches for your search term. At the same time, I want the original page to operate in the background, recalling all possible links for your search term. The user then has the option to close the smaller window if none of the popular links return match what they are looking for. Thanks in advance! |
|
#2
|
|||
|
|||
|
ok, for your first page, you will need something like this
onload="window.open('file.html','window_name','width=400, height=500'" This would cause a popup which you could display some results, etc. Then the online option of the file.html page would look like this. onload="_parent.document.location.href='file2.html';" |
|
#3
|
|||
|
|||
|
there is some JS code which will force the pop up window to stay on top of your opening window. The only way to get rid of it is to close it.
I presonally dont like popups.... and remember some people have software which removes ANY popup windows... so dont rely too heavily on it for important info! anyway... add this as a function in the script tags: function topWindow(){ popup = window.open("popup-page.html","","height=175,width=300,scrollbars=no"); then in the body onload event, simply call it onLoad="topWindow() It might not be what you're looking for, but it's not a bad feature if you want people to see the popup!! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|