View Full Version : how do i make a link open a page in a new window?


angelpayne24
05-19-2005, 12:07 AM
how do i make a link open a page in a new window?

tia

pb&j
05-19-2005, 12:15 AM
add this to your link tag...

target="_blank"

so it will look like this kindof...

<a href="newpage.html" target="_blank"> text or image </a>

derekjeter7774
05-19-2005, 01:42 AM
How do I make a pop up window, sort of like a new web window but without any of the other junk? Like for example, anybody know the way sparknotes workswhen you click on a name for the book? Bad example, but that's what I'm going for.

kittycat
05-19-2005, 02:42 AM
http://www.lissaexplains.com/javascript4.shtml

benred13
05-19-2005, 06:08 PM
add this to your link tag...

target="_blank"

so it will look like this kindof...

<a href="newpage.html" target="_blank"> text or image </a>

Or to make it even easier type this....

<a href="urlhere.html" target=newin>Text or image</a> :)

pb&j
05-20-2005, 02:54 AM
Or to make it even easier type this....

<a href="urlhere.html" target=newin>Text or image</a> :)
1. that would be a wrong answer. any link with that same target value will open into the same window if it is open already. using the special command called "_blank" will open anew window each and every time.

2. if you read through the rest of the thread, you would have noticed they wanted something beyond just an html solution, but rather a javascript solution so they can adjust the window that is opening to their own design.

it is great to see answer being posted, but please be sure you are contributing in a positive and correct way. thanks.