Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload = function() {
- if (window.location.href === 'http://www.mysite.com/done/') {
- console.log('matched the url!');
- //do stuff
- } else {
- console.log('did not match output :(');
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement