以下是我的代码,我想创建一个搜索列表,显示你的结果,然后当我点击URL时,视频开始在同一页面上和搜索结果,但我只想要iframe
<head>
<title>Youtube playlist search</title>
<link rel="stylesheet" type="text/css" href="new 2.css" media="screen">
</head>
<body>
<script src="http://www.yvoschaap.com/ytpage/ytembed.js"></script>
<form id="tfnewsearch" method="get" onsubmit="ytEmbed.init({'block':'youtubeDivSearch','type':'search','q':document.getElementById('ytSearchField').value,'results': 20,'meta','_self':false}); return false;">
<span>YouT </span>
<input type="text" id="ytSearchField" placeholder="Search your Video Here" name="q" size="21" maxlength="120">
<input type="submit" value=" Search">
</form>
<div id="youtubeDivSearch"></div>