Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
3b7e28a0
...
3b7e28a0933762794223ba2527798b08ae167739
authored
2011-12-27 15:21:02 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added missing file
1 parent
0bd0fbe3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
tests/site/click.html
tests/site/click.html
0 → 100644
View file @
3b7e28a
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
CasperJS test click
</title>
</head>
<body>
<a
id=
"test1"
href=
"javascript:results.test1 = true;"
>
test1
</a>
<a
id=
"test2"
href=
"#"
onclick=
"results.test2 = true;"
>
test2
</a>
<a
id=
"test3"
href=
"page1.html"
onclick=
"results.test3 = true; return false"
>
test3
</a>
<a
id=
"test4"
href=
"page1.html"
>
test4
</a>
<script>
(
function
(
window
)
{
window
.
results
=
{
test1
:
false
,
test2
:
false
,
test3
:
false
,
test4
:
false
};
document
.
querySelector
(
'#test4'
).
onclick
=
function
(
event
)
{
results
.
test4
=
true
;
event
.
preventDefault
();
};
})(
window
);
</script>
</body>
</html>
Please
register
or
sign in
to post a comment