Click to See Complete Forum and Search --> : Window.createPopUp()???


Zero-x252
08-23-2003, 10:11 PM
window.createPopUp()
How exactly does this command work and how can i set it up to display an HTML document inside?????? I dont exactly get the window.createPopup( [vArgs]) {how my HTML editors JS library explains it...}
what would the Arguments be?

TJL
08-24-2003, 01:06 AM
To answer your question... I really don't know how to use the window.createPopUp() to show an html page. However, there are many other ways to accomplish this. I am not quite sure how you want to implement this, but if you want to display a doc inside a popup go here: http://javascript.internet.com/generators/popup-window.html

I hope that helped a little.:(
TJL

Charles
08-24-2003, 06:34 AM
What that site produces is problematic for a number of reasons. Do not use it. Instead use something more like:

<a href="http://www.w3.org/" onclick="window.open(this.href, 'child', 'height=150,width=150,scrollbars'); return false">W3C</a>

And see http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1202731 for details.

Zero-x252
08-24-2003, 01:21 PM
Actually this only needs to work in IE and I read the MSDN lesson on it and basically i understand how to code it:

var nowinpop = window.createPopup
function showpop(){
nowinpop.body.innerHTML = '<iframe src="whatever.html"></iframe>
nowinpop.body.styles.border = "css for border"
nowinpop.body.styles.backgroundColor = "CSS for background"
nowinpop.show(location,location,size,size, what to show it on)
}