Part 1. Navigation links
2. The page body
Content of the body area & lt;/div> - & gt;
<iframeMain iframe id="" SRC=" https://bbs.csdn.net/repair/test.php "style=" width: 100%;" Height="100%";>
</iframe>
Content of the body area & lt;/div> - & gt;
<iframeMain iframe id="" SRC=" https://bbs.csdn.net/repair/test.php "style=" width: 100%;" Height="100%";>
</iframe>
The $(document). Ready (function () {
$(" dd> A "). Click (function (e) {
//set a click event is not jump to another page
E.p reventDefault ();
$(" # iframeMain "). Attr (" SRC ", $(this). Attr (" href "));
});
});
CodePudding user response:
You click events should return false,CodePudding user response:
Returns false and & lt; A href="https://bbs.csdn.net/repair/test.php" target="iframeMain> Even after refresh the entire page