yiiapi/vendor/phpunit/phpunit-selenium/selenium-1-tests/html/test_click_javascript_page.html

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!--
Copyright 2004 ThoughtWorks, Inc

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<html>
<head>
<title>Click Page 1</title>
<script type="text/javascript">
function linkClicked(url) {
    document.getElementById('result').innerHTML = 'link clicked';
}
</script>
</head>
<body>
<a id="link" href="javascript:linkClicked()">link</a><br>
<div id="result"></div>
<a id="linkWithEnclosedImage" href="javascript:alert('enclosedImage clicked')"><img id="enclosedImage" src="./tw.jpg"></a><br/>
<a id="linkWithJavascriptVoidHref" href="javascript:void(0);" onclick="alert('onclick')">link with void href</a><br/>
<a id="linkWithOnclickReturnsFalse" href="javascript:alert('linkWithOnclickReturnsFalse clicked')" onclick="return false;">link with onclick returns false</a><br/>
<a id="linkWithMultipleJavascriptStatements" href="javascript:  alert('alert1'); alert('alert2') ; alert ('alert3')">link with multiple javascript calls</a><br/>

</body>

</html>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。