0
好了,所以我有這樣的代碼:我怎樣才能改變一個iframe的內容與形式後
<body>
<div id="top_bar">
<a target="content_frame" href="main/index.php"> Home | </a>
<a target="content_frame" href="faq/index.html"> FAQ | </a>
<a target="content_frame" href="contact/index.html"> Contact </a>
<div id="search">
<form method="POST" action="/php/search.php">
Search: <input type="text" name="search_box">
<input id="search_button" type="submit" value="Search">
<form>
</div>
</div>
<iframe name="content_frame" src="main/index.php"></iframe>
</body>
以及網頁看起來是這樣的:
我如何使它所以當有人在search_box中寫入內容,然後按下ENTER鍵,但它不會更改整個頁面,而是會對iframe起作用?