LaVOZs

The World’s Largest Online Community for Developers

'; javascript - What can be done to focus the .mht file to open in iframe? What am I doing wrong?[SOLVED] - LavOzs.Com

I'm trying to use the below code but it is not working.

$('li.link').click(open() { 
    var value = $(this).attr('id');
    $container.cycle(id.replace('pager_', '')); 
    window.open(value + ".mht", 'myFrame');
    return false; 
});
<iframe allowtransparency="true" frameBorder="2" src="https://www.example.com" name="myFrame"> </iframe>

<li onclick="open()" id="xyz" class="link">xyz</li>
<li onclick="open()" id="abc" class="link">abc</li>
<li onclick="open()" id="mac" class="link">macro sed</li>
<li onclick="open()" id="asf he" class="link">asf he</li>