Reputation: 11
Any ideas how can I alter this code in order to work in a blogger post?
<script language="JavaScript">
function openWin(){
var myBars='directories=no,location=no,menubar=no,status=no';
var myOptions='scrollbars=no,top=200,left=390,width=451,height=345,resizeable=no';
var myFeatures = myBars + ',' + myOptions;
var newWin = open('', 'myDoc', myFeatures);
newWin.document.writeln('<form>');
newWin.document.writeln('<BODY BGCOLOR="#000000">');
newWin.document.writeln('<embed src ="http://www.antenna.gr/webtv/images/fbplayer.swf?cid=07_f_y_mfa_y$_a_e=&volx=100&iu=1&telemetry=false" width="426" height="320" allowfullscreen="true"/>');
newWin.document.writeln('</form>');
newWin.document.close();
newWin.focus();
}
</script>
<form>
<input type=BUTTON title="Δείτε το Επεισόδιο!" value="01" onClick='openWin()'>
</form>
Upvotes: 1
Views: 1049
Reputation: 324790
Well first of all you're writing your <form>
tag into the new window before the <body>
tag, but aside from that... WHY???
Why are you requiring a popup? Why not just have the content in the main window in the first place? Why not load it into the current window?
Anyway, that's not really what should be in an answer. The answer I have for you is that you may not be able to open popup windows in your browser. Some browsers block popups that try to hide the address bar, for instance.
If this doesn't help any, try being more specific on what "it doesn't work" means.
Upvotes: 1