-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* created sepreate js file * updating the javascript file * refactoring
- Loading branch information
1 parent
441963b
commit e0b17c0
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use strict"; | ||
|
||
// Element | ||
const ReDirect_btn = document.getElementById("redirect__btn"); | ||
|
||
// http Redirect | ||
const myFunction = function () { | ||
location.replace("https://youtu.be/dQw4w9WgXcQ"); | ||
}; | ||
|
||
// Listen to Click Event | ||
ReDirect_btn.addEventListener("click", () => { | ||
myFunction(); | ||
}); |