|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Redirect to _blank without using target
How do I use java to redirect a user to another (external) site with a new window when they click on an image.
I can't use _target as it doesn't validate. |
|
#2
|
|||
|
|||
|
RE: Redirect to _blank without using target
it doesn't validate because it is a bad thing (i hate new windows. i use tabs, thank you very much, and i like to decide when i open a new one, thank you very much again).
you can either play nice and validate, or play whatever you want, and (naturally) not validate. everything else is pointless.. |
|
#3
|
|||
|
|||
|
RE: Redirect to _blank without using target
Try this:
window.open(); You can also use target attribute. You simply open your page which does validation and use header location to redirect. If you need to do this with links, I have a code ready. |
|
#4
|
||||
|
||||
|
RE: Redirect to _blank without using target
Okay I have code... and I'm prepared to use it:
- just for everyone else : function newwindow(link, x, y) { window.open(link, 'Edit','width='+x+',height='+y+',toolbar=0,directo ries=0,menubar=0,status=0,resizable=0,location=0,s crollbars=yes,copyhistory=0'); } <a href="javascript:newwindow('http://www.codewalkers',770,502)">codewalkers</a> I don't NEED to validate - but I'd like too. I can't validate as I'm using php4 and it appends &PHPSESSID to the url's - this won't validate - So I wonder the point of it all myself. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Redirect to _blank without using target |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|