JimWorld Forums: Open new window with onclick='document.location.?



Posted By: Mark Wolk ()
Posted On: 07/27/2006 05:45 am

I have a fieldset with attribute


Code: [copy]





That basically means that I can clickthrough from wherever my mouse is within the fieldset. Can I set that attribute to open the link in a new window?


Posted By: dudibob ()
Posted On: 07/27/2006 06:36 am

add: target="_blank" into the a href tag and it will open in a new window smile


Posted By: Mark Wolk ()
Posted On: 07/27/2006 02:06 pm

No, this is rejected by my HTML Validator, because "target" is an attribute that cannot be added to fieldset. Besides, it does not work.


Posted By: Curt ()
Posted On: 08/13/2006 09:14 pm

Do this:

onclick="window.open='http://example.com/'"

That will take the person to a new window with the destination page in view.


Posted By: Mark Wolk ()
Posted On: 08/27/2006 04:58 pm

Thanks Curt, but it does not work. Nothing happens.


JimWorld Forums © 1996 - 2004 .... iWeb Technology, Jimworld.com