使用html表单更改iframe网址

时间:2019-07-18 16:48:50

标签: javascript html forms url iframe

我正在静态页面上建立一个表单,用户将在其中“输入”文本+“选择”选项,然后“提交”按钮应将iframe“ scr”网址修改为https://example.com/”文本值“ +”选项“

我在其他页面上浏览,但是找不到简单的脚本

<form>First name:<br>
<input type="text" name="firstname">

<select>
<option value="A">A</option>
<option value="B">B</option>
</select>

<input type="submit" value="Submit">

</form>

<iframe src="https://example.com/"> </iframe>

<script> ...  </script>

0 个答案:

没有答案
相关问题