I need to use XHTML strict
I need to ensure my site works with no javascript.
I need to open a new help window from my own application. Of course I wanted to use target="_blank" when no javascript detected but this is not XHTML strict.
Are there any alternatives?
You have to use javascript in this case. If you don't want to use javascript, and still have valid markup, don't use XHTML Strict as your doctype.
document.getElementById("mylink").target = "_blank";
Or you can attach a click-event to the link that opens the address up in a new window. Either way, javascript is your solution if you want valid markup.
You can only do this by:
Don't force new windows on visitors
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With