JS implements the method of loading different web pages within the frame after clicking the button

  • 2020-06-07 03:57:45
  • OfStack

This article illustrates how JS can load different web pages within the frame after clicking a button. Share to everybody for everybody reference. Specific implementation methods are as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title> Headless document </title>
<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<iframe width="1024" height="768" id="Box" frameborder="1" 
<br />
<script language="javascript">
function GetUrl()
<input id="CmdGetUrl" type="button" value=" Loading page " onclick="GetUrl()"/>

Hopefully, this article has been helpful in your javascript programming.

Related articles: