I am trying to create a JS Bookmarklet that will search the source of whatever page I'm on for a specific code (example. "G1_Value_client") and if that exists I want it to return an alert A and if it does not exist I want it to return alert B.
I am not sure where I am going wrong. Any help would be greatly appreciated!