473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Re: javascipt to bust out of iframe

VK
On Jun 8, 12:07 am, Dr J R Stockton <j...@merlyn.demon.co.ukwrote:
In comp.lang.javascript message <Sa2dnX8T_fKOF9TVnZ2dnUVZ_qqgnZ2d@prairi
ewave.com>, Fri, 6 Jun 2008 14:03:45, rfr <rfroh...@iw.netposted:
Unfortunatley, I don't think that use of "target" will pass the WC3
validator. That menas you will not be able to use validation to check your
code to be sure it is up to standards and hopefully more cross-bowser.

A single expected failure does disallow use of the "valid" logo; but it
does not prevent the rest of the page being checked. To make sure, do
an occasional test with target not used.

If JavaScript is available, I suppose one could add the target attribute
by script, or write the whole link by script.
That would be clearly a childish behavior: "it is OK to do if daddy
cannot see it". W3C Validator doesn't really validate anything for a
longest time by now anyway. With some caution it can be still used as
a markup errors checker, as well as HTML Tidy can be. Outside that its
HTML part is just a curious artifact of W3C ideas about the future of
the Web as they had them in 1998-99

At the modern time the DOCTYPE is only used for the mode switch with
two doctypes covering all needs:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"for
BackCompat mode
<!DOCTYPE htmlfor CSS1Compat mode

See also:
http://www.w3.org/TR/html5/#the-doctype
http://www.w3.org/TR/html5/#the-initial

Jun 27 '08 #1
1 1525
VK wrote:
W3C Validator doesn't really validate anything for a longest time by now
anyway. [...]
Evidently, you do not have a single clue what you are talking about.
At the modern time the DOCTYPE is only used for the mode switch with two
doctypes covering all needs: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"for BackCompat mode
Valid, but recommended against *because* of the DOCTYPE switch that
triggers even more different rendering behavior among user agents.
<!DOCTYPE htmlfor CSS1Compat mode
Not Valid HTML 4.01, though.
See also: http://www.w3.org/TR/html5/#the-doctype
http://www.w3.org/TR/html5/#the-initial
This is ridiculous. You are referring to an *incomplete* *draft*
for HTML *5* that (obviously) lacks wide support.
F'up2 comp.infosystems.www.authoring.html

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

57
by: John Howard | last post by:
I've sent several messages over the last year asking about python - Who teaches python? Is python losing steam? etc. I have noticed, eg, the declinng number of books at my local borders. The last...
4
by: boyscout | last post by:
If a link is targeted to an iframe, can the linked page do anything to NOT appear in the iframe? My efforts to make the linked page pop up a window or an alert outside of the iframe aren't...
2
by: Seven | last post by:
Can someone direct me, or give me advice... I simply would like to load a random html page from an array into an iframe upon refresh or visit. Every time the user visits the site a diferent news...
0
by: tequilamala | last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet...
7
by: noob | last post by:
Hi all, I want to display advertising in iframe, but bust out of iframe if someone clicks on any of the links in there. Can u please help. I googled for it, but I am not sure about the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.