Click to See Complete Forum and Search --> : pop-up window's & frames


David Harrison
03-08-2003, 10:23 AM
I can create a pop-up window with a simple click of a button (and a lot of code) but instead of a pop-up window can a page be created in a frame? And if so how?

Nevermore
03-08-2003, 10:46 AM
do you mean can a frame be added to your document? If so, not quite, but you can start off with one so small you can't see it, then expand it with JavaScript.

David Harrison
03-08-2003, 11:35 AM
i mean in an empty frame that's already there, i want to create a page, so all the content that would have been in a pop-up window will go into that frame.

AdamBrill
03-08-2003, 12:08 PM
Try this:

<a href="page.htm" target="left">Click here!</a>

where left is your frame name. That way it will work for people without javascript, too...

David Harrison
03-08-2003, 12:46 PM
Thanks for your suggestion adam but the problem is it's not just a simple link, I'm going to create the page when a button is pressed and i want that to appear in the frame.

AdamBrill
03-08-2003, 01:13 PM
Well, to do it with javascript, you can use this:

top.framename.location = "page.htm";

Is that what you are looking for?

David Harrison
03-08-2003, 02:02 PM
thanx again, i don't have to change much do i.