Click to See Complete Forum and Search --> : can u load an image into a frame in a new window


kung-fu-monkey
04-25-2003, 11:14 AM
can u load an image into a new frame in a new window (with a back button or link!), with that new window at a set size a place?? from a link on your original page?

Jona
04-25-2003, 11:18 AM
Large question...

<html><head>
<script>
function openMe(){
var me = window.open("my_frame.html","me","width=400,height=500");
me.resizeTo(screen.width, screen.height/2);
me.moveTo(0, screen.height/2);
}
</script></head><body>
<a href="javascript:openMe()">Open!</a>
</body></html>

Your "my_frame.html" file will have to be a frameset with all the Javascript you want. Although it is possible to write to a new window and/or a frame, it is a waste of time.