Redirection Question

D

Disco Octopus

Fred wrote :
Can you help me?
I'm trying to specify a target="_blank" In this redirect script but
can not figure it out.

<script language="javascript">

<!--

location.replace("http://www.cnn.com");

-->

</script>

how is this done?

Thanks

it looks like you are looking for a way to have a popup.

look up window.open() or open()
 
F

Fred

Can you help me?
I'm trying to specify a target="_blank" In this redirect script but
can not figure it out.

<script language="javascript">

<!--

location.replace("http://www.cnn.com");

-->

</script>

how is this done?

Thanks
 
E

Edwin van der Vaart

Disco said:
Fred wrote :


it looks like you are looking for a way to have a popup.

look up window.open() or open()
You mean
var newWindow
function makeNewWindow() {
newWindow = window.open("url","sub","options+toolbars+width+height")
}

IMHO add also a close newWindow function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top