113
rated 0 times
[
116]
[
3]
/ answers: 1 / hits: 14297
/ 10 Years ago, thu, april 3, 2014, 12:00:00
I have reproduced this problem with chrome (with firefox and with IE works fine).
I have two files, one is test_index.html and other is test.html.
the code of test_index is the following:
<html>
<head>
<meta name=description content=>
<meta name=keywords content=>
<Title></Title>
</head>
<frameset cols=190,* framespacing=0 border=0 frameborder=0>
<frame name=menu_frame target=principale src=test.html marginwidth=0 marginheight=0 scrolling=auto>
<frame name=principale src= scrolling=no marginwidth=0 marginheight=0 target=principale>
</frameset>
</html>
the code of test.html is the following:
<html>
<head>
<script type=text/javascript>
function writedoc() {
newWindow = window.open( '','principale','width=100%');
newWindow.document.open();
newWindow.document.writeln('<html><head><title>Pictures Slide Show</title></head><body><p>Hello World</p></body></html>');
}
</script>
</head>
<body>
<input type=button onclick=writedoc() />
</body>
</html>
So when I click the button nothing happens in chrome, what am i doing wrong?
More From » html