PDA

View Full Version : html doc in new windows help plz


relyt
02-12-2003, 12:38 AM
ok i have a question. i used this code

<iframe name="cwindow" style="border:1px solid blue" width=150 height=150 src="doc.htm"></iframe>

can i make it so when a link is clicked outside that box a page loads into the one created inside the main html?

esntric
02-12-2003, 12:48 AM
I'm much of a newbie and such, but me making a suggestion couldnt hurt ( even if its wrong ), eh?

Did you try targeting?

<a href="page.html" target="cwindow">text</a>

Alex Vincent
02-12-2003, 03:55 PM
That is generally correct: the target indicates an HTML window name you want the document to open in. If you use the window name "_blank", it opens in a new window altogether, irregardless of what other windows you opened with the same target.

jer2911
02-25-2003, 06:57 PM
I have a question that is almost exactly the same, but slightly different.

I want to make it so that when someone clicks on a particular link, that it is opened in a new window. The new window has some JavaScript prompt type stuff in it, and it automatically runs when opened, and instead of going foreward, I want it to be a new window.

How would I do this?

(Or better yet, does anyone know how to make the prompt not come up when the page loads, but when a link is clicked?)