[jQuery] how to write a frameset with jquery
Hi, I'm trying to output a frameset and I tried everything but can't
get it to work. The frameset never appears in the generated html.
The html and js code is the following:
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/
jquery.min.js" type="text/javascript"></script>
<script src="scripts.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>my page</title>
</head>
</html>
scripts.js
$(function() {
$('html').append('<frameset cols="*,31"><frame src="mainframe.html" /